Retro68/gcc/config/bootstrap-asan.mk

12 lines
442 B
Makefile
Raw Normal View History

2014-09-21 17:33:12 +00:00
# This option enables -fsanitize=address for stage2 and stage3.
2015-08-28 15:33:40 +00:00
# Suppress LeakSanitizer in bootstrap.
2017-04-10 11:32:00 +00:00
export LSAN_OPTIONS="detect_leaks=0"
2015-08-28 15:33:40 +00:00
2014-09-21 17:33:12 +00:00
STAGE2_CFLAGS += -fsanitize=address
STAGE3_CFLAGS += -fsanitize=address
POSTSTAGE1_LDFLAGS += -fsanitize=address -static-libasan \
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/ \
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs