[llvm] [cmake] Move LLVM_ENABLE_PIC cmake option to HandleLLVMOptions.cmake (PR #84750)

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 11 11:35:13 PDT 2024


================
@@ -376,6 +376,9 @@ if( LLVM_USE_LINKER )
   endif()
 endif()
 
+if (NOT CMAKE_SYSTEM_NAME MATCHES "OS390")
+  option(LLVM_ENABLE_PIC "Build Position-Independent Code" ON)
----------------
compnerd wrote:

This option doesn't really make sense on Windows, it is always PIC.

https://github.com/llvm/llvm-project/pull/84750


More information about the llvm-commits mailing list