Skip to content
Commit Detail

Commit 7204518

Author
Felix Hanau <felix@cloudflare.com> 2024-04-05 16:21:23 -0400
Parents
d81c327
Tree
41c8fb2
[build] Add -fvisibility-inlines-hidden

Mark C++ inline methods as hidden, causing them to not be exported when
creating shared libraries.

This significantly reduces binary sizes and possibly link times on Linux,
where shared linkage is used for everything except the workerd binary.
There is a smaller binary size improvement for macOS, where shared
linkage is not enabled by default.
See https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Dialect-Options.html#index-fvisibility-inlines-hidden
for background information.

Files changed

1 file changed~1 modified