summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bbc521f4c0e5..9497b0a42198 100644
--- a/Makefile
+++ b/Makefile
@@ -67,8 +67,11 @@ endif
# http://gcc.gnu.org/PR41874
# http://gcc.gnu.org/PR41838
#
-# We can revisit this when LLVM/Clang support it.
+# We don't need to do this if the host compiler is clang.
+ifneq ($(CXX_COMPILER), "clang")
CXX.Flags += -fno-strict-aliasing
+endif
+
# Set up Clang's tblgen.
ifndef CLANG_TBLGEN