diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-05-21 17:54:16 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-05-21 19:32:49 +0800 |
| commit | a7cd7d8eb37c50554ae7c75f2ba94db74d293a1b (patch) | |
| tree | e0985cde7dbea591c88eb60e47beee00753dd84f /Makefile | |
| parent | a7dd55a38147ff27f27d553e92e5ecc21b5a1892 (diff) | |
Makefile: pthread for debug
Makefile: use default instead of afl-g++
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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" |
