[PATCH] D106914: [libclang] Check LLVM_HAVE_LINK_VERSION_SCRIPT
Jinsong Ji via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 27 13:12:50 PDT 2021
jsji created this revision.
jsji added reviewers: PowerPC, tstellar, MaskRay, hubert.reinterpretcast.
Herald added a subscriber: mgorny.
jsji requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
There are some platform that might not have version script support,
don't try to use version script on those.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D106914
Files:
clang/tools/libclang/CMakeLists.txt
Index: clang/tools/libclang/CMakeLists.txt
===================================================================
--- clang/tools/libclang/CMakeLists.txt
+++ clang/tools/libclang/CMakeLists.txt
@@ -76,7 +76,7 @@
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106914.362155.patch
Type: text/x-patch
Size: 405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210727/50c44175/attachment.bin>
More information about the cfe-commits
mailing list