Make sure SANITIZE can be used properly when needed
This commit is contained in:
parent
b494d5b0c4
commit
daa33c5af1
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -227,7 +227,7 @@ LDFLAGS += -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
|
|||
ifndef DEBUG
|
||||
CFLAGS += -Ofast
|
||||
else
|
||||
CFLAGS += -g -rdynamic -funwind-tables -DDEBUG -Wl,--export-dynamic
|
||||
CFLAGS += -g -rdynamic -funwind-tables -fno-omit-frame-pointer -DDEBUG -Wl,--export-dynamic
|
||||
endif
|
||||
|
||||
#LTO is supposed to reduced code size and increased execution speed. For Amiberry, it does not.
|
||||
|
@ -256,7 +256,7 @@ ifdef USE_PROFILE
|
|||
endif
|
||||
|
||||
ifdef SANITIZE
|
||||
LDFLAGS += -lasan
|
||||
export LDFLAGS := -lasan $(LDFLAGS)
|
||||
CFLAGS += -fsanitize=leak -fsanitize-recover=address
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue