summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Oliver Stöneberg <oliverst@online.de>2014-12-30 15:38:40 +0100
committer Oliver Stöneberg <oliverst@online.de>2014-12-30 15:38:40 +0100
commitd9a6a2e9142ae62fe3deec9a9d31e7dca83a50b2 (patch)
treee96e862a5243bda1ea1178902177992d936cfdb9
parentace2339469e356b27540517bf7ded2bb3ff11b7b (diff)
more clarification on disabled UndefinedBehaviorSanitizer checks (nw)
-rw-r--r--makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/makefile b/makefile
index 24bdc2af6e3..87dbd584576 100644
--- a/makefile
+++ b/makefile
@@ -599,7 +599,13 @@ 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=vptr -fno-sanitize=object-size
+CCOMFLAGS += -fno-sanitize=shift -fno-sanitize=object-size
+# produces a lot of messages - disable it for now
+CCOMFLAGS += -fno-sanitize=alignment
+# these are false positives because of the way our delegates work
+CCOMFLAGS += -fno-sanitize=function
+# clang takes forever to compile src/emu/cpu/tms57002/tms57002.c, src/emu/cpu/m6809/konami.c, src/emu/cpu/m6809/hd6309.c, src/emu/video/psx.c when this isn't disabled
+CCOMFLAGS += -fno-sanitize=vptr
# 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