summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-11-16 07:16:08 -0800
committerH.J. Lu <hjl.tools@gmail.com>2014-11-16 07:16:08 -0800
commit742206fc43d4fcb2461075e296636148ba45ed1b (patch)
tree36c06d1813672f74037813def1df51c3f0e45d21
parentcdf97dbf545a443d6ae19713a7de2638cba717ed (diff)
downloadgcc-hjl/asan.tar.gz
Export "detect_leaks=0 detect_odr_violation=0"hjl/asan
2014-11-15 H.J. Lu <hongjiu.lu@intel.com> PR bootstrap/63888 * bootstrap-asan.mk (ASAN_OPTIONS): Export "detect_leaks=0 detect_odr_violation=0"
-rw-r--r--config/bootstrap-asan.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/bootstrap-asan.mk b/config/bootstrap-asan.mk
index fbef02125dc..3c41301fa25 100644
--- a/config/bootstrap-asan.mk
+++ b/config/bootstrap-asan.mk
@@ -1,5 +1,8 @@
# This option enables -fsanitize=address for stage2 and stage3.
+# Suppress LeakSanitizer and odr-violation in bootstrap.
+export ASAN_OPTIONS="detect_leaks=0 detect_odr_violation=0"
+
STAGE2_CFLAGS += -fsanitize=address
STAGE3_CFLAGS += -fsanitize=address
POSTSTAGE1_LDFLAGS += -fsanitize=address -static-libasan \