Hide C++ symbols in libxgboost.so when building Python wheel (#5590)
* Hide C++ symbols in libxgboost.so when building Python wheel * Update Jenkinsfile * Add test * Upgrade rabit * Add setup.py option. Co-authored-by: fis <jm.yuan@outlook.com>
This commit is contained in:
committed by
GitHub
parent
660be66207
commit
ef26bc45bf
@@ -39,6 +39,12 @@ if (USE_CUDA)
|
||||
)
|
||||
endif (MSVC)
|
||||
|
||||
if (HIDE_CXX_SYMBOLS)
|
||||
target_compile_options(objxgboost PRIVATE
|
||||
$<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=-fvisibility=hidden>
|
||||
)
|
||||
endif (HIDE_CXX_SYMBOLS)
|
||||
|
||||
set_target_properties(objxgboost PROPERTIES
|
||||
CUDA_SEPARABLE_COMPILATION OFF)
|
||||
else (USE_CUDA)
|
||||
|
||||
Reference in New Issue
Block a user