aboutsummaryrefslogtreecommitdiff
path: root/config/bootstrap-asan.mk
diff options
context:
space:
mode:
Diffstat (limited to 'config/bootstrap-asan.mk')
-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 fbef021..52ef30e 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 in bootstrap.
+export ASAN_OPTIONS="detect_leaks=0"
+
STAGE2_CFLAGS += -fsanitize=address
STAGE3_CFLAGS += -fsanitize=address
POSTSTAGE1_LDFLAGS += -fsanitize=address -static-libasan \