2012-11-29 18:00:38 +01:00
|
|
|
# This option enables -fsanitize=address for stage2 and stage3.
|
|
|
|
|
2014-11-17 23:12:55 +01:00
|
|
|
# Suppress LeakSanitizer in bootstrap.
|
2015-10-21 09:40:54 +02:00
|
|
|
export LSAN_OPTIONS="detect_leaks=0"
|
2014-11-17 23:12:55 +01:00
|
|
|
|
2012-11-29 18:00:38 +01:00
|
|
|
STAGE2_CFLAGS += -fsanitize=address
|
|
|
|
STAGE3_CFLAGS += -fsanitize=address
|
|
|
|
POSTSTAGE1_LDFLAGS += -fsanitize=address -static-libasan \
|
2013-11-29 19:10:21 +01:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
|
2013-02-25 17:18:39 +01:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/ \
|
2012-11-29 18:00:38 +01:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs
|