2012-12-12 21:45:37 +08:00
|
|
|
# This option enables -fsanitize=address for stage2 and stage3.
|
|
|
|
|
2016-03-22 17:25:20 +08:00
|
|
|
# Suppress LeakSanitizer in bootstrap.
|
|
|
|
export LSAN_OPTIONS="detect_leaks=0"
|
|
|
|
|
2012-12-12 21:45:37 +08:00
|
|
|
STAGE2_CFLAGS += -fsanitize=address
|
|
|
|
STAGE3_CFLAGS += -fsanitize=address
|
|
|
|
POSTSTAGE1_LDFLAGS += -fsanitize=address -static-libasan \
|
2016-03-22 17:25:20 +08:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
|
2013-04-30 20:40:42 +08:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/ \
|
2012-12-12 21:45:37 +08:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs
|