You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/onnx/files/onnx-1.15.0-hidden.patch

11 lines
511 B

--- 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})