aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2009-08-26 17:05:06 +0000
committerOscar Fuentes <ofv@wanadoo.es>2009-08-26 17:05:06 +0000
commite1e3aaf0ac8e2700639b3136a45d89045583e6ea (patch)
treef19810a33346e352162dc03b8d07764d8592637a /cmake
parent814910191a73b59896b94ee2ed46ee48943d4731 (diff)
Ignore -fPIC test on Windows. Suggested by Yonggang Luo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/config-ix.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index abb4afc74d..52025a9ee2 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -81,7 +81,11 @@ endif()
include(CheckAtomic)
include(CheckCXXCompilerFlag)
-check_cxx_compiler_flag("-fPIC" SUPPORTS_FPIC_FLAG)
+# On windows all code is position-independent and mingw warns if -fPIC
+# is in the command-line.
+if( NOT WIN32 )
+ check_cxx_compiler_flag("-fPIC" SUPPORTS_FPIC_FLAG)
+endif()
include(GetTargetTriple)
get_target_triple(LLVM_HOSTTRIPLE)