2012-12-12 14:45:37 +01:00
|
|
|
# This option enables -fsanitize=address for stage2 and stage3.
|
|
|
|
|
2015-03-16 16:34:23 +01:00
|
|
|
# Suppress LeakSanitizer in bootstrap.
|
2015-11-28 17:39:32 +01:00
|
|
|
export LSAN_OPTIONS="detect_leaks=0"
|
2015-03-16 16:34:23 +01:00
|
|
|
|
2012-12-12 14:45:37 +01:00
|
|
|
STAGE2_CFLAGS += -fsanitize=address
|
|
|
|
STAGE3_CFLAGS += -fsanitize=address
|
|
|
|
POSTSTAGE1_LDFLAGS += -fsanitize=address -static-libasan \
|
2013-11-29 20:07:49 +01:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
|
2013-04-30 14:40:42 +02:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/ \
|
2012-12-12 14:45:37 +01:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs
|