We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f2e095 commit 40fee63Copy full SHA for 40fee63
clang/Makefile
@@ -38,6 +38,16 @@ ifdef CLANG_VENDOR
38
CPP.Flags += -DCLANG_VENDOR='"$(CLANG_VENDOR) "'
39
endif
40
41
+# Disable -fstrict-aliasing. Darwin disables it by default (and LLVM doesn't
42
+# work with it enabled with GCC), Clang/llvm-gc don't support it yet, and newer
43
+# GCC's have false positive warnings with it on Linux (which prove a pain to
44
+# fix). For example:
45
+# http://gcc.gnu.org/PR41874
46
+# http://gcc.gnu.org/PR41838
47
+#
48
+# We can revisit this when LLVM/Clang support it.
49
+CXX.Flags += -fno-strict-aliasing
50
+
51
###
52
# Clang Top Level specific stuff.
53
0 commit comments