diff --git a/interpreter/llvm/src/tools/llvm-objdump/Makefile b/interpreter/llvm/src/tools/llvm-objdump/Makefile index 4616b78adb2ee1e55539c65bfc59fd4254af36f4..ea1dae4c8f860080a4cc22f31ad011c6104f1c6c 100644 --- a/interpreter/llvm/src/tools/llvm-objdump/Makefile +++ b/interpreter/llvm/src/tools/llvm-objdump/Makefile @@ -15,3 +15,13 @@ LINK_COMPONENTS := all-targets DebugInfo MC MCParser MCDisassembler Object TOOL_NO_EXPORTS := 1 include $(LEVEL)/Makefile.common + +# Disable -fstrict-aliasing. Darwin disables it by default (and LLVM doesn't +# work with it enabled with GCC), Clang/llvm-gcc don't support it yet, and newer +# GCC's have false positive warnings with it on Linux (which prove a pain to +# fix). For example: +# http://gcc.gnu.org/PR41874 +# http://gcc.gnu.org/PR41838 +# +# We can revisit this when LLVM/Clang support it. +CXX.Flags += -fno-strict-aliasing