Skip to content

Commit

Permalink
Export CreateInterface function only
Browse files Browse the repository at this point in the history
Co-authored-by: Maxim Telezhenko <[email protected]>
  • Loading branch information
Wend4r and Kailo97 committed Nov 28, 2024
1 parent 193d2ed commit cd00a9f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/platform/linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ endif()

set(PLATFORM_LINK_OPTIONS
${PLATFORM_LINK_OPTIONS}

-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/sym/version_script.lds
)

set(PLATFORM_COMPILE_DEFINITIONS
Expand Down
2 changes: 2 additions & 0 deletions cmake/platform/macos.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ endif()

set(PLATFORM_LINK_OPTIONS
${PLATFORM_LINK_OPTIONS}

-Wl,-exported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/sym/exported_symbols.lds
)

set(PLATFORM_COMPILE_DEFINITIONS
Expand Down
1 change: 1 addition & 0 deletions sym/exported_symbols.lds
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CreateInterface
4 changes: 4 additions & 0 deletions sym/version_script.lds
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
global: CreateInterface;
local: *;
};

0 comments on commit cd00a9f

Please sign in to comment.