bootstrap-asan.mk 442 B

123456789101112
  1. # This option enables -fsanitize=address for stage2 and stage3.
  2. # Suppress LeakSanitizer in bootstrap.
  3. export ASAN_OPTIONS="detect_leaks=0"
  4. STAGE2_CFLAGS += -fsanitize=address
  5. STAGE3_CFLAGS += -fsanitize=address
  6. POSTSTAGE1_LDFLAGS += -fsanitize=address -static-libasan \
  7. -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
  8. -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/ \
  9. -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs