From: David Zarzycki Date: Wed, 22 May 2019 15:48:12 +0000 (+0000) Subject: Unbreak non-PIC builds after r361340/D62174 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=839cd499772e7fba7670b1789bb0367ece6e66fc;p=llvm Unbreak non-PIC builds after r361340/D62174 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361399 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index e7e6f982949..f172092508a 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/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