summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/cmake/modules/HandleLLVMOptions.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index e7e6f982949..f172092508a 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -921,7 +921,7 @@ if(WIN32 OR CYGWIN)
set(LLVM_ENABLE_PLUGINS OFF)
endif()
else()
- set(LLVM_ENABLE_PLUGINS ON)
+ set(LLVM_ENABLE_PLUGINS ${LLVM_ENABLE_PIC})
endif()
# By default we should enable LLVM_ENABLE_IDE only for multi-configuration
OpenPOWER on IntegriCloud