Skip to content

Commit 047d211

Browse files
committed
build: Add -fvisibility=hidden flag for macOS host
With all benefits of reducing exports, there are no evidences of any drawback while compiling with clang for macOS. Also, when building with depends, it is expected that different translation units are being compiled with the same visibility settings.
1 parent 66636ca commit 047d211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

depends/hosts/darwin.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ darwin_CXX=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \
109109
-Xclang -internal-externc-isystem$(clang_resource_dir)/include \
110110
-Xclang -internal-externc-isystem$(OSX_SDK)/usr/include
111111

112-
darwin_CFLAGS=-pipe
112+
darwin_CFLAGS=-pipe -fvisibility=hidden
113113
darwin_CXXFLAGS=$(darwin_CFLAGS)
114114

115115
darwin_release_CFLAGS=-O2

0 commit comments

Comments
 (0)