compiler-rt: Fix some exports to respect the common linkage and visibility.

This commit is contained in:
Alex Rønne Petersen
2025-05-18 22:20:55 +02:00
parent 092352ec63
commit 90fb2d9754
5 changed files with 116 additions and 118 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,
});
}