Merge pull request #23923 from alexrp/compiler-rt-symbols

Use hidden visibility in compiler-rt and libzigc except when testing
This commit is contained in:
Alex Rønne Petersen
2025-05-20 07:48:35 +02:00
committed by GitHub
10 changed files with 141 additions and 133 deletions

View File

@@ -24,7 +24,7 @@ pub fn main() !void {
\\//! This file is generated by tools/gen_outline_atomics.zig.
\\const builtin = @import("builtin");
\\const std = @import("std");
\\const linkage = @import("./common.zig").linkage;
\\const common = @import("common.zig");
\\const always_has_lse = std.Target.aarch64.featureSetHas(builtin.cpu.features, .lse);
\\
\\/// This default is overridden at runtime after inspecting CPU properties.
@@ -48,7 +48,7 @@ pub fn main() !void {
@tagName(op), n.toBytes(), @tagName(order),
});
try writeFunction(arena, w, name, op, n, order);
try footer.writer().print(" @export(&{s}, .{{ .name = \"{s}\", .linkage = linkage }});\n", .{
try footer.writer().print(" @export(&{s}, .{{ .name = \"{s}\", .linkage = common.linkage, .visibility = common.visibility }});\n", .{
name, name,
});
}