[PATCH] D104168: CMake: allow overriding CMAKE_CXX_VISIBILITY_PRESET
Wenlei He via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 15 15:58:10 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG76de2f4a9c02: CMake: allow overriding CMAKE_CXX_VISIBILITY_PRESET (authored by wenlei).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104168/new/
https://reviews.llvm.org/D104168
Files:
llvm/lib/Target/CMakeLists.txt
Index: llvm/lib/Target/CMakeLists.txt
===================================================================
--- llvm/lib/Target/CMakeLists.txt
+++ llvm/lib/Target/CMakeLists.txt
@@ -21,7 +21,8 @@
# When building shared objects for each target there are some internal APIs
# that are used across shared objects which we can't hide.
-if (NOT BUILD_SHARED_LIBS AND NOT APPLE)
+if (NOT BUILD_SHARED_LIBS AND NOT APPLE AND
+ NOT DEFINED CMAKE_CXX_VISIBILITY_PRESET)
# Set default visibility to hidden, so we don't export all the Target classes
# in libLLVM.so.
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104168.352278.patch
Type: text/x-patch
Size: 610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210615/055ac905/attachment.bin>
More information about the llvm-commits
mailing list