[clang] 6654719 - [CMake] Fix logic error: NOT LIBCLANG_BUILD_STATIC does not imply PIC
David Zarzycki via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 26 04:17:18 PDT 2020
Author: David Zarzycki
Date: 2020-04-26T07:16:42-04:00
New Revision: 665471907a5c072c6653a38c35f35e5d54cef220
URL: https://github.com/llvm/llvm-project/commit/665471907a5c072c6653a38c35f35e5d54cef220
DIFF: https://github.com/llvm/llvm-project/commit/665471907a5c072c6653a38c35f35e5d54cef220.diff
LOG: [CMake] Fix logic error: NOT LIBCLANG_BUILD_STATIC does not imply PIC
Added:
Modified:
clang/tools/libclang/CMakeLists.txt
Removed:
################################################################################
diff --git a/clang/tools/libclang/CMakeLists.txt b/clang/tools/libclang/CMakeLists.txt
index bb2b14cc8e27..9368501592a9 100644
--- a/clang/tools/libclang/CMakeLists.txt
+++ b/clang/tools/libclang/CMakeLists.txt
@@ -77,7 +77,7 @@ if(MSVC)
set(LLVM_EXPORTED_SYMBOL_FILE)
endif()
-if(LLVM_ENABLE_PIC OR NOT LIBCLANG_BUILD_STATIC)
+if(LLVM_ENABLE_PIC)
set(ENABLE_SHARED SHARED)
endif()
More information about the cfe-commits
mailing list