Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 62cd19d

Browse files
committed
CMAKE: apply -O3 for mingw clang
Differential Revision: https://reviews.llvm.org/D41596 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324570 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent f198033 commit 62cd19d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ endif()
834834
include(AddLLVM)
835835
include(TableGen)
836836

837-
if( MINGW )
837+
if( MINGW AND NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" )
838838
# People report that -O3 is unreliable on MinGW. The traditional
839839
# build also uses -O2 for that reason:
840840
llvm_replace_compiler_option(CMAKE_CXX_FLAGS_RELEASE "-O3" "-O2")

0 commit comments

Comments
 (0)