From a7cd7d8eb37c50554ae7c75f2ba94db74d293a1b Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 21 May 2025 17:54:16 +0800 Subject: Makefile: pthread for debug Makefile: use default instead of afl-g++ --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6fdde0a..1997923 100644 --- a/Makefile +++ b/Makefile @@ -13,8 +13,8 @@ CXXFLAGS += -std=c++26 -Oz -s -Wall -flto -fPIC LDFLAGS += -Wl,--as-needed,-z,now,-z,pack-relative-relocs # Debug flags -DEBUG_CXXFLAGS = -std=c++26 -g3 -O0 -Wall -fno-lto -fPIC -DDEBUG -DEBUG_LDFLAGS = -Wl,--no-as-needed,-z,now,-z,pack-relative-relocs +DEBUG_CXXFLAGS = -std=c++26 -g3 -O0 -Wall -fno-lto -fPIC -DDEBUG,-ffu -pthread +DEBUG_LDFLAGS = -Wl,--no-as-needed,-z,now,-z,pack-relative-relocs -lpthread CXXFLAGS += $(shell pkg-config --cflags ftxui) LDFLAGS += $(shell pkg-config --libs ftxui) @@ -76,8 +76,8 @@ clang-tidy: debug: CXXFLAGS = $(DEBUG_CXXFLAGS) debug: LDFLAGS = $(DEBUG_LDFLAGS) -debug: CC = afl-g++ -debug: CXX = afl-g++ +# debug: CC = afl-g++ +# debug: CXX = afl-g++ # debug: export AFL_USE_ASAN = 1 debug: $(BIN) @echo "Debug build complete" -- cgit v1.2.3