mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Hide all symbols in llvm namespace (#63272)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/63272 Test Plan: Imported from OSS Reviewed By: nikithamalgifb Differential Revision: D30331695 Pulled By: bertmaher fbshipit-source-id: d35130c96f7e2a31fa86d9d80de59002e96301df
This commit is contained in:
parent
045c4cb82f
commit
0ce4d30c44
3 changed files with 3 additions and 7 deletions
|
|
@ -815,7 +815,7 @@ if(USE_LLVM AND LLVM_FOUND)
|
|||
elseif(UNIX)
|
||||
set(LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/version_script.lds")
|
||||
set_target_properties(torch_cpu PROPERTIES LINK_DEPENDS ${LINKER_SCRIPT})
|
||||
set_target_properties(torch_cpu PROPERTIES LINK_FLAGS "-Wl,--version-script=${LINKER_SCRIPT}")
|
||||
target_link_libraries(torch_cpu PRIVATE "-Wl,--version-script=${LINKER_SCRIPT}")
|
||||
endif()
|
||||
endif(USE_LLVM AND LLVM_FOUND)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1 @@
|
|||
__ZN4llvm*
|
||||
__ZNK4llvm*
|
||||
*4llvm*
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
pytorch {
|
||||
global:
|
||||
*;
|
||||
local:
|
||||
_ZN4llvm*;
|
||||
_ZNK4llvm*;
|
||||
*4llvm*;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue