2012-11-29 17:00:38 +00:00
|
|
|
# This option enables -fsanitize=address for stage2 and stage3.
|
|
|
|
|
2014-11-17 22:12:55 +00:00
|
|
|
# Suppress LeakSanitizer in bootstrap.
|
2016-12-02 07:39:27 +00:00
|
|
|
export ASAN_OPTIONS=detect_leaks=0:use_odr_indicator=1
|
2014-11-17 22:12:55 +00:00
|
|
|
|
2012-11-29 17:00:38 +00:00
|
|
|
STAGE2_CFLAGS += -fsanitize=address
|
|
|
|
STAGE3_CFLAGS += -fsanitize=address
|
|
|
|
POSTSTAGE1_LDFLAGS += -fsanitize=address -static-libasan \
|
2013-11-29 18:10:21 +00:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
|
2013-02-25 16:18:39 +00:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/ \
|
2012-11-29 17:00:38 +00:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs
|