mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
small clarification on disabled UndefinedBehaviorSanitizer checks (nw)
This commit is contained in:
parent
c80ba44bbf
commit
ace2339469
6
makefile
6
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 $@
|
||||
|
Loading…
Reference in New Issue
Block a user