Skip to content
Snippets Groups Projects
Commit f9a387e3 authored by Axel Naumann's avatar Axel Naumann
Browse files

Silence aliasing warning.

parent 882f896e
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment