Skip to content

Commit

Permalink
Revert "Set default symbol visibility to hidden"
Browse files Browse the repository at this point in the history
This reverts commit 3e7f6cb.
  • Loading branch information
krazijames committed Oct 8, 2024
1 parent 0965b41 commit 8453cdf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions static_lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
cmake_minimum_required(VERSION 3.26)
project(onnxruntime_static_lib)

# Set default visibility
set(CMAKE_POLICY_DEFAULT_CMP0063 NEW)
set(CMAKE_C_VISIBILITY_PRESET hidden)
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)

# Hide symbols
set(C_HEADER_FILE ${ONNXRUNTIME_SOURCE_DIR}/include/onnxruntime/core/session/onnxruntime_c_api.h)
file(COPY_FILE ${C_HEADER_FILE} ${C_HEADER_FILE}.bak)
Expand Down

0 comments on commit 8453cdf

Please sign in to comment.