[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
This commit is contained in:
Jinsong Ji 2021-07-27 20:18:48 +00:00
parent 571673ce39
commit e07f9342be
1 changed files with 1 additions and 1 deletions

View File

@ -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)