gentoo/sci-ml/onnx/files/onnx-1.15.0-hidden.patch
Alfredo Tupone fd76e9ac01
*/*: mv sci-libs/onnx to sci-ml/
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
2025-03-15 16:58:00 +01:00

11 lines
511 B
Diff

--- a/CMakeLists.txt 2024-05-04 19:39:17.464135798 +0200
+++ b/CMakeLists.txt 2024-05-04 19:39:23.155068064 +0200
@@ -496,7 +496,6 @@
else()
# On non-Windows, hide all symbols we don't need
set(ONNX_API_DEFINE "-DONNX_API=__attribute__\(\(__visibility__\(\"default\"\)\)\)")
- set_target_properties(onnx_proto PROPERTIES CXX_VISIBILITY_PRESET hidden)
set_target_properties(onnx_proto PROPERTIES VISIBILITY_INLINES_HIDDEN 1)
endif()
target_compile_definitions(onnx_proto PRIVATE ${ONNX_API_DEFINE})