-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CMake] Move the setting of LLVM_COMPILER_IS_GCC_COMPATIBLE to a sepa…
…rate file Currently LLVM_COMPILER_IS_GCC_COMPATIBLE is set as a side-effect of determining the stdlib to use in HandleLLVMStdlib, which causes problems when attempting to use AddLLVM from an installed LLVM toolchain, as HandleLLVMStdlib is not used. Move the setting of this variable into DetermineGCCCompatible and include that from both AddLLVM and HandleLLVMStdlib. Differential Revision: http://reviews.llvm.org/D13216 llvm-svn: 248798
- Loading branch information
1 parent
0f28d62
commit c23801d
Showing
3 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Determine if the compiler has GCC-compatible command-line syntax. | ||
|
||
if(NOT DEFINED LLVM_COMPILER_IS_GCC_COMPATIBLE) | ||
if(CMAKE_COMPILER_IS_GNUCXX) | ||
set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON) | ||
elseif( MSVC ) | ||
set(LLVM_COMPILER_IS_GCC_COMPATIBLE OFF) | ||
elseif( "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" ) | ||
set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON) | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters