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
This commit is contained in:
Oscar Fuentes 2009-08-26 17:05:06 +00:00
parent 814910191a
commit e1e3aaf0ac

View File

@ -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)