authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-04-14 13:06:01-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-04-15 10:33:08-07:00
log9b631b2b32c963535f33321b0ab5d91a211235f7
tree45eb3488bfb1a5195fa018772e7343ae98fe4295
parent4a233d18717e0f5729218e02eebf29ad46449a38

compiler_rt: use default visibility for non-exported symbols


1 files changed, 2 insertions(+), 1 deletions(-)

lib/compiler_rt/common.zig+2-1
...@@ -6,7 +6,8 @@ pub const linkage: std.builtin.GlobalLinkage = if (builtin.is_test) .Internal el...@@ -6,7 +6,8 @@ pub const linkage: std.builtin.GlobalLinkage = if (builtin.is_test) .Internal el
6/// Determines the symbol's visibility to other objects.6/// Determines the symbol's visibility to other objects.
7/// For WebAssembly this allows the symbol to be resolved to other modules, but will not7/// For WebAssembly this allows the symbol to be resolved to other modules, but will not
8/// export it to the host runtime.8/// export it to the host runtime.
9pub const visibility: std.builtin.SymbolVisibility = if (builtin.target.isWasm()) .hidden else .default;9pub const visibility: std.builtin.SymbolVisibility =
10 if (builtin.target.isWasm() and linkage != .Internal) .hidden else .default;
10pub const want_aeabi = switch (builtin.abi) {11pub const want_aeabi = switch (builtin.abi) {
11 .eabi,12 .eabi,
12 .eabihf,13 .eabihf,