[PATCH] D41596: CMAKE: apply -O3 for mingw-w64 clang

Martell Malone via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 27 06:13:56 PST 2017


martell created this revision.
martell added reviewers: rnk, mstorsjo.
Herald added a subscriber: mgorny.

clang is not gcc :)


Repository:
  rL LLVM

https://reviews.llvm.org/D41596

Files:
  CMakeLists.txt


Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -829,7 +829,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.128228.patch
Type: text/x-patch
Size: 443 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171227/3d5bd1be/attachment.bin>


More information about the llvm-commits mailing list