summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-29 17:00:38 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-29 17:00:38 +0000
commit394dd2c1f601babb5975fc5333fcd0e273ec7a79 (patch)
tree9df49fc608d09413cddf13e7d175a5d9e9b0c9ae /config
parent9e5b186b1778f5d7316218190693cab985d0930d (diff)
downloadgcc-394dd2c1f601babb5975fc5333fcd0e273ec7a79.tar.gz
Add the missing file
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193942 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config')
-rw-r--r--config/bootstrap-asan.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/bootstrap-asan.mk b/config/bootstrap-asan.mk
new file mode 100644
index 00000000000..d37a9da6bbf
--- /dev/null
+++ b/config/bootstrap-asan.mk
@@ -0,0 +1,6 @@
+# This option enables -fsanitize=address for stage2 and stage3.
+
+STAGE2_CFLAGS += -fsanitize=address
+STAGE3_CFLAGS += -fsanitize=address
+POSTSTAGE1_LDFLAGS += -fsanitize=address -static-libasan \
+ -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs