mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
CMake: Always include the CheckCXXCompilerFlag in HandleLLVMOptions.cmake.
Previously we relied on it being included by config-ix.cmake. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176396 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aa1fa29423
commit
e2abe05174
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
include(AddLLVMDefinitions)
|
include(AddLLVMDefinitions)
|
||||||
include(CheckCCompilerFlag)
|
include(CheckCCompilerFlag)
|
||||||
|
include(CheckCXXCompilerFlag)
|
||||||
|
|
||||||
if( CMAKE_COMPILER_IS_GNUCXX )
|
if( CMAKE_COMPILER_IS_GNUCXX )
|
||||||
set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON)
|
set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON)
|
||||||
@ -66,7 +67,6 @@ if( LLVM_ENABLE_PIC )
|
|||||||
elseif( WIN32 OR CYGWIN)
|
elseif( WIN32 OR CYGWIN)
|
||||||
# On Windows all code is PIC. MinGW warns if -fPIC is used.
|
# On Windows all code is PIC. MinGW warns if -fPIC is used.
|
||||||
else()
|
else()
|
||||||
include(CheckCXXCompilerFlag)
|
|
||||||
check_cxx_compiler_flag("-fPIC" SUPPORTS_FPIC_FLAG)
|
check_cxx_compiler_flag("-fPIC" SUPPORTS_FPIC_FLAG)
|
||||||
if( SUPPORTS_FPIC_FLAG )
|
if( SUPPORTS_FPIC_FLAG )
|
||||||
message(STATUS "Building with -fPIC")
|
message(STATUS "Building with -fPIC")
|
||||||
|
Loading…
Reference in New Issue
Block a user