From e1e3aaf0ac8e2700639b3136a45d89045583e6ea Mon Sep 17 00:00:00 2001 From: Oscar Fuentes Date: Wed, 26 Aug 2009 17:05:06 +0000 Subject: 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 --- cmake/config-ix.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cmake') 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) -- cgit v1.2.3