Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-12-12 17:45:37 +0400
committerH.J. Lu <hjl.tools@gmail.com>2012-12-12 17:45:37 +0400
commit3061d0eed58a9b846c2ba770a84c361b8027e57d (patch)
tree69bba3df74eeb9a377350a7797176547daf2c0db /config/bootstrap-asan.mk
parenta5149a541a39d07c5db1bbc4b3eda1c94dbf32f7 (diff)
Add bootstrap-asan.mk
* bootstrap-asan.mk: New file.
Diffstat (limited to 'config/bootstrap-asan.mk')
-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 000000000..d37a9da6b
--- /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