[llvm] r324570 - CMAKE: apply -O3 for mingw clang
Martell Malone via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 7 23:13:17 PST 2018
Author: martell
Date: Wed Feb 7 23:13:17 2018
New Revision: 324570
URL: http://llvm.org/viewvc/llvm-project?rev=324570&view=rev
Log:
CMAKE: apply -O3 for mingw clang
Differential Revision: https://reviews.llvm.org/D41596
Modified:
llvm/trunk/CMakeLists.txt
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=324570&r1=324569&r2=324570&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Wed Feb 7 23:13:17 2018
@@ -834,7 +834,7 @@ endif()
include(AddLLVM)
include(TableGen)
-if( MINGW )
+if( MINGW AND NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" )
# People report that -O3 is unreliable on MinGW. The traditional
# build also uses -O2 for that reason:
llvm_replace_compiler_option(CMAKE_CXX_FLAGS_RELEASE "-O3" "-O2")
More information about the llvm-commits
mailing list