projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee45c03
)
CMake: Always include the CheckCXXCompilerFlag in HandleLLVMOptions.cmake.
author
Jordan Rose
<jordan_rose@apple.com>
Sat, 2 Mar 2013 01:00:40 +0000
(
01:00
+0000)
committer
Jordan Rose
<jordan_rose@apple.com>
Sat, 2 Mar 2013 01:00:40 +0000
(
01:00
+0000)
Previously we relied on it being included by config-ix.cmake.
llvm-svn: 176396
llvm/cmake/modules/HandleLLVMOptions.cmake
patch
|
blob
|
history
diff --git
a/llvm/cmake/modules/HandleLLVMOptions.cmake
b/llvm/cmake/modules/HandleLLVMOptions.cmake
index
9121080
..
a83be41
100644
(file)
--- a/
llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/
llvm/cmake/modules/HandleLLVMOptions.cmake
@@
-4,6
+4,7
@@
include(AddLLVMDefinitions)
include(CheckCCompilerFlag)
+include(CheckCXXCompilerFlag)
if( CMAKE_COMPILER_IS_GNUCXX )
set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON)
@@
-66,7
+67,6
@@
if( LLVM_ENABLE_PIC )
elseif( WIN32 OR CYGWIN)
# On Windows all code is PIC. MinGW warns if -fPIC is used.
else()
- include(CheckCXXCompilerFlag)
check_cxx_compiler_flag("-fPIC" SUPPORTS_FPIC_FLAG)
if( SUPPORTS_FPIC_FLAG )
message(STATUS "Building with -fPIC")