[PATCH] D41596: CMAKE: apply -O3 for mingw-w64 clang
Martell Malone via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 7 23:16:29 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL324570: CMAKE: apply -O3 for mingw clang (authored by martell, committed by ).
Herald added a subscriber: hintonda.
Changed prior to commit:
https://reviews.llvm.org/D41596?vs=128228&id=133372#toc
Repository:
rL LLVM
https://reviews.llvm.org/D41596
Files:
llvm/trunk/CMakeLists.txt
Index: llvm/trunk/CMakeLists.txt
===================================================================
--- llvm/trunk/CMakeLists.txt
+++ llvm/trunk/CMakeLists.txt
@@ -834,7 +834,7 @@
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")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41596.133372.patch
Type: text/x-patch
Size: 476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180208/6bc7c37f/attachment.bin>
More information about the llvm-commits
mailing list