mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
suppress alignment errors with SANITIZE=undefined for now (nw)
This commit is contained in:
parent
e86e124aa7
commit
cb3b1aae36
6
makefile
6
makefile
@ -583,6 +583,12 @@ ifneq (,$(findstring clang,$(CC)))
|
||||
CCOMFLAGS += -fsanitize-memory-track-origins -fPIE
|
||||
endif
|
||||
endif
|
||||
ifneq (,$(findstring undefined,$(SANITIZE)))
|
||||
ifneq (,$(findstring clang,$(CC)))
|
||||
# TODO: check if linker is clang++
|
||||
CCOMFLAGS += -fno-sanitize=alignment
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
#-------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user