Index: config/bootstrap-asan.mk |
diff --git a/config/bootstrap-asan.mk b/config/bootstrap-asan.mk |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fbef02125dca4d7c9d06763e039225c052f89237 |
--- /dev/null |
+++ b/config/bootstrap-asan.mk |
@@ -0,0 +1,8 @@ |
+# 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/ \ |
+ -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/ \ |
+ -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs |