2014-09-21 19:33:12 +02:00
|
|
|
# This option enables -fsanitize=address for stage2 and stage3.
|
|
|
|
|
2015-08-28 17:33:40 +02:00
|
|
|
# Suppress LeakSanitizer in bootstrap.
|
2017-10-07 02:16:47 +02:00
|
|
|
export ASAN_OPTIONS=detect_leaks=0:use_odr_indicator=1
|
2015-08-28 17:33:40 +02:00
|
|
|
|
2014-09-21 19:33:12 +02: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
|