mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[Build] Add address sanitizer option if ASAN=1
This commit is contained in:
committed by
LeaNumworks
parent
f2efd46814
commit
8dbe719a68
@@ -18,6 +18,11 @@ else
|
||||
SFLAGS += -Os
|
||||
endif
|
||||
|
||||
ifeq ($(ASAN),1)
|
||||
SFLAGS += -fsanitize=address
|
||||
LDFLAGS += -fsanitize=address
|
||||
endif
|
||||
|
||||
# Flags - Header search path
|
||||
SFLAGS += -Ilib -I.
|
||||
|
||||
|
||||
@@ -2,3 +2,7 @@ export AFL_QUIET = 1
|
||||
CC = afl-clang
|
||||
CXX = afl-clang++
|
||||
LD = afl-clang++
|
||||
|
||||
ifeq ($(ASAN),1)
|
||||
export AFL_USE_ASAN = 1
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user