diff options
author | Chris Bieneman <beanz@apple.com> | 2015-08-18 16:15:44 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2015-08-18 16:15:44 +0000 |
commit | c5635a6af7c643169f81145bfae8c895f2207792 (patch) | |
tree | 51cdc2f48fcbfdb8c4d2cd031e3e9158c4928834 /clang/Makefile | |
parent | f2bd72e00d4584bcdc05067be293b0fd8f582e28 (diff) | |
download | bcm5719-llvm-c5635a6af7c643169f81145bfae8c895f2207792.tar.gz bcm5719-llvm-c5635a6af7c643169f81145bfae8c895f2207792.zip |
We shouldn't need to pass -fno-strict-aliasing when building clang with clang.
Summary: The code comments in the Makefile indicate this was put in place to support issues when building clang with GCC. Today clang's strict aliasing works, so we shouldn't pass -fno-strict-aliasing when building with clang.
Reviewers: bogner, echristo
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D12036
llvm-svn: 245304
Diffstat (limited to 'clang/Makefile')
-rw-r--r-- | clang/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/Makefile b/clang/Makefile index bbc521f4c0e..38b6fd1adac 100644 --- a/clang/Makefile +++ b/clang/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. +ifeq ($(CXX_COMPILER), "clang") CXX.Flags += -fno-strict-aliasing +endif + # Set up Clang's tblgen. ifndef CLANG_TBLGEN |