suppress alignment errors with SANITIZE=undefined for now (nw)

This commit is contained in:
Oliver Stöneberg 2014-02-26 00:49:47 +00:00
parent e86e124aa7
commit cb3b1aae36

View File

@ -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
#-------------------------------------------------