From 9b631b2b32c963535f33321b0ab5d91a211235f7 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 14 Apr 2023 13:06:01 -0700 Subject: [PATCH] compiler_rt: use default visibility for non-exported symbols --- lib/compiler_rt/common.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/compiler_rt/common.zig b/lib/compiler_rt/common.zig index ec4f545f37879c8c8492cc16c2fb7f3a3c8d8191..eaabffa07390dc0a712cc66ca1660ae3129a53ee 100644 --- a/lib/compiler_rt/common.zig +++ b/lib/compiler_rt/common.zig @@ -6,7 +6,8 @@ pub const linkage: std.builtin.GlobalLinkage = if (builtin.is_test) .Internal el /// Determines the symbol's visibility to other objects. /// For WebAssembly this allows the symbol to be resolved to other modules, but will not /// export it to the host runtime. -pub const visibility: std.builtin.SymbolVisibility = if (builtin.target.isWasm()) .hidden else .default; +pub const visibility: std.builtin.SymbolVisibility = + if (builtin.target.isWasm() and linkage != .Internal) .hidden else .default; pub const want_aeabi = switch (builtin.abi) { .eabi, .eabihf, -- 2.54.0