[clang] e07f934 - [libclang] Check LLVM_HAVE_LINK_VERSION_SCRIPT
Jinsong Ji via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 27 13:19:14 PDT 2021
Author: Jinsong Ji
Date: 2021-07-27T20:18:50Z
New Revision: e07f9342be7132f433963880d95e471ae2246d64
URL: https://github.com/llvm/llvm-project/commit/e07f9342be7132f433963880d95e471ae2246d64
DIFF: https://github.com/llvm/llvm-project/commit/e07f9342be7132f433963880d95e471ae2246d64.diff
LOG: [libclang] Check LLVM_HAVE_LINK_VERSION_SCRIPT
There are some platform that might not have version script support,
don't try to use version script on those.
Reviewed By: MaskRay, hubert.reinterpretcast
Differential Revision: https://reviews.llvm.org/D106914
Added:
Modified:
clang/tools/libclang/CMakeLists.txt
Removed:
################################################################################
diff --git a/clang/tools/libclang/CMakeLists.txt b/clang/tools/libclang/CMakeLists.txt
index 65863d7508a8c..8cc0fc622174a 100644
--- a/clang/tools/libclang/CMakeLists.txt
+++ b/clang/tools/libclang/CMakeLists.txt
@@ -76,7 +76,7 @@ endif()
if (UNIX AND NOT APPLE)
set(LLVM_EXPORTED_SYMBOL_FILE)
- set(USE_VERSION_SCRIPT TRUE)
+ set(USE_VERSION_SCRIPT ${LLVM_HAVE_LINK_VERSION_SCRIPT})
endif()
if (LLVM_EXPORTED_SYMBOL_FILE)
More information about the cfe-commits
mailing list