[llvm-commits] [llvm] r80111 - /llvm/trunk/cmake/config-ix.cmake

Oscar Fuentes ofv at wanadoo.es
Wed Aug 26 10:05:07 PDT 2009


Author: ofv
Date: Wed Aug 26 12:05:06 2009
New Revision: 80111

URL: http://llvm.org/viewvc/llvm-project?rev=80111&view=rev
Log:
Ignore -fPIC test on Windows. Suggested by Yonggang Luo.

Modified:
    llvm/trunk/cmake/config-ix.cmake

Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=80111&r1=80110&r2=80111&view=diff

==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Wed Aug 26 12:05:06 2009
@@ -81,7 +81,11 @@
 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)





More information about the llvm-commits mailing list