2012-12-12 13:45:37 +00:00
|
|
|
# This option enables -fsanitize=address for stage2 and stage3.
|
|
|
|
|
2015-03-16 08:34:23 -07:00
|
|
|
# Suppress LeakSanitizer in bootstrap.
|
2016-12-08 09:50:17 +10:30
|
|
|
export ASAN_OPTIONS=detect_leaks=0:use_odr_indicator=1
|
2015-03-16 08:34:23 -07:00
|
|
|
|
2012-12-12 13:45:37 +00:00
|
|
|
STAGE2_CFLAGS += -fsanitize=address
|
|
|
|
STAGE3_CFLAGS += -fsanitize=address
|
|
|
|
POSTSTAGE1_LDFLAGS += -fsanitize=address -static-libasan \
|
2013-11-29 11:07:49 -08:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
|
2013-04-30 12:40:42 +00:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/ \
|
2012-12-12 13:45:37 +00:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs
|