trunk/makefile
| r242620 | r242621 | |
| 599 | 599 | ifneq (,$(findstring undefined,$(SANITIZE))) |
| 600 | 600 | ifneq (,$(findstring clang,$(CC))) |
| 601 | 601 | # TODO: check if linker is clang++ |
| 602 | | CCOMFLAGS += -fno-sanitize=alignment -fno-sanitize=function -fno-sanitize=shift -fno-sanitize=null -fno-sanitize=vptr -fno-sanitize=object-size |
| 602 | CCOMFLAGS += -fno-sanitize=alignment -fno-sanitize=function -fno-sanitize=shift -fno-sanitize=vptr -fno-sanitize=object-size |
| 603 | # clang takes forever to compile src/emu/video/psx.c when this isn't disabled |
| 604 | CCOMFLAGS += -fno-sanitize=null |
| 603 | 605 | # clang takes forever to compile src/emu/cpu/tms57002/tms57002.c when this isn't disabled |
| 604 | 606 | CCOMFLAGS += -fno-sanitize=signed-integer-overflow |
| 605 | 607 | endif |
| r242620 | r242621 | |
| 911 | 913 | $(CC) $(CDEFS) $(CFLAGS) -c $(SRC)/version.c -o $(VERSIONOBJ) |
| 912 | 914 | @echo Linking $@... |
| 913 | 915 | ifeq ($(TARGETOS),emscripten) |
| 914 | | # Emscripten's linker seems to be stricter about the ordering of .a files |
| 916 | # Emscripten's linker seems to be stricter about the ordering of .a files |
| 915 | 917 | $(LD) $(LDFLAGS) $(LDFLAGSEMULATOR) $(VERSIONOBJ) -Wl,--start-group $^ -Wl,--end-group $(LIBS) -o $@ |
| 916 | 918 | else |
| 917 | 919 | $(LD) $(LDFLAGS) $(LDFLAGSEMULATOR) $(VERSIONOBJ) $^ $(LIBS) -o $@ |