summaryrefslogtreecommitdiff
path: root/configurecompiler.cmake
diff options
context:
space:
mode:
authorAdeel Mujahid <adeelbm@outlook.com>2019-02-09 01:24:59 (GMT)
committerJan Vorlicek <janvorli@microsoft.com>2019-02-09 01:24:59 (GMT)
commit5bb7eb68035e98e356aba68115e28ed22d3d34aa (patch)
tree6a2ce545da5c8c32591910ffcb2fe86186894c22 /configurecompiler.cmake
parent8e79024b436f348ea9f96487a6d54067e750f596 (diff)
downloadcoreclr-5bb7eb68035e98e356aba68115e28ed22d3d34aa.zip
coreclr-5bb7eb68035e98e356aba68115e28ed22d3d34aa.tar.gz
coreclr-5bb7eb68035e98e356aba68115e28ed22d3d34aa.tar.bz2
Set visibility option to hidden (#21924)
Diffstat (limited to 'configurecompiler.cmake')
-rw-r--r--configurecompiler.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/configurecompiler.cmake b/configurecompiler.cmake
index 5afca2d..d291595 100644
--- a/configurecompiler.cmake
+++ b/configurecompiler.cmake
@@ -482,6 +482,9 @@ if (CLR_CMAKE_PLATFORM_UNIX)
# as x64 does. It has been causing issues in ARM (https://github.com/dotnet/coreclr/issues/4746)
add_compile_options(-fsigned-char)
+ # We mark the function which needs exporting with DLLEXPORT
+ add_compile_options(-fvisibility=hidden)
+
# Specify the minimum supported version of macOS
if(CLR_CMAKE_PLATFORM_DARWIN)
set(MACOS_VERSION_MIN_FLAGS "-mmacosx-version-min=10.12")