summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/config-ix.cmake7
1 files changed, 2 insertions, 5 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 27f2964038..f0e11767e3 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -162,12 +162,9 @@ llvm_find_program(dotty)
# Define LLVM_MULTITHREADED if gcc atomic builtins exists.
include(CheckAtomic)
+set(ENABLE_PIC ${LLVM_ENABLE_PIC})
+
include(CheckCXXCompilerFlag)
-# 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()
check_cxx_compiler_flag("-Wno-variadic-macros" SUPPORTS_NO_VARIADIC_MACROS_FLAG)