Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/config/bootstrap-ubsan.mk
2023-03-06 14:48:14 +01:00

8 lines
430 B
Makefile

# This option enables -fsanitize=undefined for stage2 and stage3.
STAGE2_CFLAGS += -fsanitize=undefined -DUBSAN_BOOTSTRAP
STAGE3_CFLAGS += -fsanitize=undefined -DUBSAN_BOOTSTRAP
POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -DUBSAN_BOOTSTRAP \
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/ \
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/.libs