diff options
author | Adeel Mujahid <adeelbm@outlook.com> | 2019-02-09 03:24:59 +0200 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2019-02-09 02:24:59 +0100 |
commit | 5bb7eb68035e98e356aba68115e28ed22d3d34aa (patch) | |
tree | 6a2ce545da5c8c32591910ffcb2fe86186894c22 /configurecompiler.cmake | |
parent | 8e79024b436f348ea9f96487a6d54067e750f596 (diff) | |
download | coreclr-5bb7eb68035e98e356aba68115e28ed22d3d34aa.tar.gz coreclr-5bb7eb68035e98e356aba68115e28ed22d3d34aa.tar.bz2 coreclr-5bb7eb68035e98e356aba68115e28ed22d3d34aa.zip |
Set visibility option to hidden (#21924)
Diffstat (limited to 'configurecompiler.cmake')
-rw-r--r-- | configurecompiler.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configurecompiler.cmake b/configurecompiler.cmake index 5afca2da71..d291595836 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") |