Skip to content

Commit c120ec5

Browse files
committed
Optimize function calls: Set non-exported symbols hidden
1 parent ba43d69 commit c120ec5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CosineKitty-Sapphire/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ target_include_directories(Sapphire PRIVATE
5656
)
5757

5858
target_compile_options(Sapphire PRIVATE
59-
#TODO
59+
-fvisibility=hidden
60+
-fvisibility-inlines-hidden
6061
)
6162

6263
target_compile_definitions(Sapphire PRIVATE

CosineKitty-Sapphire/plugin.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
Plugin *pluginInstance;
44

5+
__attribute__ ((visibility ("default")))
56
void init(Plugin *p) {
67
pluginInstance = p;
78

0 commit comments

Comments
 (0)