| ... | @@ -3093,6 +3093,9 @@ pub fn genExports(dg: *DeclGen, exported: Zcu.Exported, export_indices: []const | ... | @@ -3093,6 +3093,9 @@ pub fn genExports(dg: *DeclGen, exported: Zcu.Exported, export_indices: []const |
| 3093 | const @"export" = export_index.ptr(zcu); | 3093 | const @"export" = export_index.ptr(zcu); |
| 3094 | try fwd.writeAll("zig_extern "); | 3094 | try fwd.writeAll("zig_extern "); |
| 3095 | if (@"export".opts.linkage == .weak) try fwd.writeAll("zig_weak_linkage "); | 3095 | if (@"export".opts.linkage == .weak) try fwd.writeAll("zig_weak_linkage "); |
| | 3096 | if (@"export".opts.section.toSlice(ip)) |s| try fwd.print("zig_linksection({s}) ", .{ |
| | 3097 | fmtStringLiteral(s, null), |
| | 3098 | }); |
| 3096 | const extern_name = @"export".opts.name.toSlice(ip); | 3099 | const extern_name = @"export".opts.name.toSlice(ip); |
| 3097 | const is_mangled = isMangledIdent(extern_name, true); | 3100 | const is_mangled = isMangledIdent(extern_name, true); |
| 3098 | const is_export = @"export".opts.name != main_name; | 3101 | const is_export = @"export".opts.name != main_name; |