summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2014-02-26 00:49:47 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2014-02-26 00:49:47 +0000
commitcb3b1aae36346cf341a3a622a7a66bcd01d65137 (patch)
tree1aca56dff94e664f5ada570223b22f48b2a87cc1 /makefile
parente86e124aa708f788a20a7e3835d0115f63883b4d (diff)
suppress alignment errors with SANITIZE=undefined for now (nw)
Diffstat (limited to 'makefile')
-rw-r--r--makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/makefile b/makefile
index 548e2d86690..7ee161911c7 100644
--- a/makefile
+++ b/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
#-------------------------------------------------