From ace2339469e356b27540517bf7ded2bb3ff11b7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Tue, 30 Dec 2014 15:17:16 +0100 Subject: small clarification on disabled UndefinedBehaviorSanitizer checks (nw) --- makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 91ba31f1372..24bdc2af6e3 100644 --- a/makefile +++ b/makefile @@ -599,7 +599,9 @@ endif ifneq (,$(findstring undefined,$(SANITIZE))) ifneq (,$(findstring clang,$(CC))) # TODO: check if linker is clang++ -CCOMFLAGS += -fno-sanitize=alignment -fno-sanitize=function -fno-sanitize=shift -fno-sanitize=null -fno-sanitize=vptr -fno-sanitize=object-size +CCOMFLAGS += -fno-sanitize=alignment -fno-sanitize=function -fno-sanitize=shift -fno-sanitize=vptr -fno-sanitize=object-size +# clang takes forever to compile src/emu/video/psx.c when this isn't disabled +CCOMFLAGS += -fno-sanitize=null # clang takes forever to compile src/emu/cpu/tms57002/tms57002.c when this isn't disabled CCOMFLAGS += -fno-sanitize=signed-integer-overflow endif @@ -911,7 +913,7 @@ $(EMULATOR): $(EMUINFOOBJ) $(DRIVLISTOBJ) $(DRVLIBS) $(LIBOSD) $(LIBBUS) $(LIBOP $(CC) $(CDEFS) $(CFLAGS) -c $(SRC)/version.c -o $(VERSIONOBJ) @echo Linking $@... ifeq ($(TARGETOS),emscripten) -# Emscripten's linker seems to be stricter about the ordering of .a files + # Emscripten's linker seems to be stricter about the ordering of .a files $(LD) $(LDFLAGS) $(LDFLAGSEMULATOR) $(VERSIONOBJ) -Wl,--start-group $^ -Wl,--end-group $(LIBS) -o $@ else $(LD) $(LDFLAGS) $(LDFLAGSEMULATOR) $(VERSIONOBJ) $^ $(LIBS) -o $@ -- cgit v1.2.3