2014-09-13 00:14:23 +02:00
|
|
|
# This option enables -fsanitize=address for stage2 and stage3.
|
|
|
|
|
2017-04-10 13:32:00 +02:00
|
|
|
# Suppress LeakSanitizer in bootstrap.
|
|
|
|
export ASAN_OPTIONS=detect_leaks=0:use_odr_indicator=1
|
|
|
|
|
2014-09-13 00:14:23 +02:00
|
|
|
STAGE2_CFLAGS += -fsanitize=address
|
|
|
|
STAGE3_CFLAGS += -fsanitize=address
|
|
|
|
POSTSTAGE1_LDFLAGS += -fsanitize=address -static-libasan \
|
2015-08-28 17:32:19 +02:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
|
2014-09-13 00:14:23 +02:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/ \
|
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs
|