Mercurial > hg > CbC > CbC_gcc
diff config/bootstrap-asan.mk @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/bootstrap-asan.mk Fri Oct 27 22:46:09 2017 +0900 @@ -0,0 +1,11 @@ +# This option enables -fsanitize=address for stage2 and stage3. + +# Suppress LeakSanitizer in bootstrap. +export ASAN_OPTIONS=detect_leaks=0:use_odr_indicator=1 + +STAGE2_CFLAGS += -fsanitize=address +STAGE3_CFLAGS += -fsanitize=address +POSTSTAGE1_LDFLAGS += -fsanitize=address -static-libasan \ + -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \ + -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/ \ + -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs