summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-02-13 18:20:56 +0100
committerRichard Braun <rbraun@sceen.net>2017-02-13 18:20:56 +0100
commite1b3d3912f4cf3696bd4acc1d551aa3a343a5145 (patch)
tree5e53264dbd04ed8f595c39b64b9e9ccdbea8d5ef
parent8e3c41b30aeee93eb7f42c9e204bd71d03c0ccd1 (diff)
Disable strict-aliasing optimizations
GCC 4.9.2 produces type-punning warnings about some LLVM headers. Don't take any chance and just squash the issue by ignoring strict aliasing rules altogether.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 674dbbd..d4c4ff3 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ LLVM_COMPONENTS = all
LLVM_CXXFLAGS = $(shell llvm-config --cxxflags)
LLVM_LDFLAGS = $(shell llvm-config --ldflags)
-CXXFLAGS = -std=c++11 -fPIC -Wall
+CXXFLAGS = -std=c++11 -fPIC -Wall -fno-strict-aliasing
CXXFLAGS += -fvisibility-inlines-hidden -fno-exceptions -fno-rtti
CXXFLAGS += $(LLVM_CXXFLAGS)