Retro68/gcc/config/bootstrap-ubsan.mk

9 lines
430 B
Makefile
Raw Normal View History

2014-09-21 17:33:12 +00:00
# This option enables -fsanitize=undefined for stage2 and stage3.
2019-06-02 15:48:37 +00:00
STAGE2_CFLAGS += -fsanitize=undefined -DUBSAN_BOOTSTRAP
STAGE3_CFLAGS += -fsanitize=undefined -DUBSAN_BOOTSTRAP
POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -DUBSAN_BOOTSTRAP \
2014-09-21 17:33:12 +00:00
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/ \
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/.libs