mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
parent
34644511bb
commit
eb7963e4c7
1 changed files with 3 additions and 0 deletions
|
|
@ -3093,6 +3093,9 @@ pub fn genExports(dg: *DeclGen, exported: Zcu.Exported, export_indices: []const
|
|||
const @"export" = export_index.ptr(zcu);
|
||||
try fwd.writeAll("zig_extern ");
|
||||
if (@"export".opts.linkage == .weak) try fwd.writeAll("zig_weak_linkage ");
|
||||
if (@"export".opts.section.toSlice(ip)) |s| try fwd.print("zig_linksection({s}) ", .{
|
||||
fmtStringLiteral(s, null),
|
||||
});
|
||||
const extern_name = @"export".opts.name.toSlice(ip);
|
||||
const is_mangled = isMangledIdent(extern_name, true);
|
||||
const is_export = @"export".opts.name != main_name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue