llvm.org GIT mirror llvm / e1e3aaf
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 Oscar Fuentes 11 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8080 include(CheckAtomic)
8181
8282 include(CheckCXXCompilerFlag)
83 check_cxx_compiler_flag("-fPIC" SUPPORTS_FPIC_FLAG)
83 # On windows all code is position-independent and mingw warns if -fPIC
84 # is in the command-line.
85 if( NOT WIN32 )
86 check_cxx_compiler_flag("-fPIC" SUPPORTS_FPIC_FLAG)
87 endif()
8488
8589 include(GetTargetTriple)
8690 get_target_triple(LLVM_HOSTTRIPLE)