summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-05-21 17:54:16 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-05-21 19:32:49 +0800
commita7cd7d8eb37c50554ae7c75f2ba94db74d293a1b (patch)
treee0985cde7dbea591c88eb60e47beee00753dd84f /Makefile
parenta7dd55a38147ff27f27d553e92e5ecc21b5a1892 (diff)
Makefile: pthread for debug
Makefile: use default instead of afl-g++
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
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"