diff options
author | Richard Braun <rbraun@sceen.net> | 2017-02-13 18:20:56 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-02-13 18:20:56 +0100 |
commit | e1b3d3912f4cf3696bd4acc1d551aa3a343a5145 (patch) | |
tree | 5e53264dbd04ed8f595c39b64b9e9ccdbea8d5ef | |
parent | 8e3c41b30aeee93eb7f42c9e204bd71d03c0ccd1 (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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |