aboutsummaryrefslogtreecommitdiff
path: root/cmake/compiler/clang
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/compiler/clang')
-rw-r--r--cmake/compiler/clang/settings.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/compiler/clang/settings.cmake b/cmake/compiler/clang/settings.cmake
index 204cc6d245a..5ccacbf9888 100644
--- a/cmake/compiler/clang/settings.cmake
+++ b/cmake/compiler/clang/settings.cmake
@@ -41,7 +41,10 @@ if (BUILD_SHARED_LIBS)
# -fvisibility=hidden sets the default visibility to hidden to prevent exporting of all symbols.
target_compile_options(trinity-compile-option-interface
INTERFACE
- -fPIC
+ -fPIC)
+
+ target_compile_options(trinity-hidden-symbols-interface
+ INTERFACE
-fvisibility=hidden)
# --no-undefined to throw errors when there are undefined symbols