aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@inbox.ru>2020-10-19 22:51:12 +0100
committerSergei Trofimovich <slyfox@inbox.ru>2020-10-19 22:54:41 +0100
commit1eb812e06d0f02382f4e91bbc9b74029a7635bd6 (patch)
treec902bcc34cd2d5181b467438e190aa4318a92e60 /llvm/lib/Support/Path.cpp
parent52bcd691cb1992187d022161e95977a9db371f51 (diff)
downloadllvm-1eb812e06d0f02382f4e91bbc9b74029a7635bd6.zip
llvm-1eb812e06d0f02382f4e91bbc9b74029a7635bd6.tar.gz
llvm-1eb812e06d0f02382f4e91bbc9b74029a7635bd6.tar.bz2
[VE] Fix initializer visibility
Before the change attempt to link libLTO.so against shared LLVM library failed as: ``` [ 76%] Linking CXX shared library ../../lib/libLTO.so ... /usr/bin/cmake -E cmake_link_script CMakeFiles/LTO.dir/link.txt --verbose=1 c++ -o ...libLTO.so.12git ...ibLLVM-12git.so ld: CMakeFiles/LTO.dir/lto.cpp.o: in function `llvm::InitializeAllTargetInfos()': include/llvm/Config/Targets.def:31: undefined reference to `LLVMInitializeVETargetInfo' ``` It happens because on linux llvm build system sets default symbol visibility to "hidden". The fix is to set visibility back to "default" for exported APIs with LLVM_EXTERNAL_VISIBILITY. Bug: https://bugs.llvm.org/show_bug.cgi?id=47847 Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D89633
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
0 files changed, 0 insertions, 0 deletions