authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-06-11 02:09:09+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-06-12 17:51:30+01:00
log22e961070d2299d6189b0ad82e04763e504a0208
tree8b749d98a6c3403a6e89aa7455d419f814772458
parentafa07f723f956d78a4bd4c4be10ef04e86e50521
signaturelock-open Commit is signed but in an unrecognized format.

link: fix goff and xcoff flush


2 files changed, 6 insertions(+), 2 deletions(-)

src/link/Goff.zig+3-1
...@@ -102,9 +102,11 @@ pub fn updateExports(...@@ -102,9 +102,11 @@ pub fn updateExports(
102}102}
103103
104pub fn flush(self: *Goff, arena: Allocator, tid: Zcu.PerThread.Id, prog_node: std.Progress.Node) link.File.FlushError!void {104pub fn flush(self: *Goff, arena: Allocator, tid: Zcu.PerThread.Id, prog_node: std.Progress.Node) link.File.FlushError!void {
105 if (build_options.skip_non_native and builtin.object_format != .goff)
106 @panic("Attempted to compile for object format that was disabled by build configuration");
107
105 _ = self;108 _ = self;
106 _ = arena;109 _ = arena;
107 _ = tid;110 _ = tid;
108 _ = prog_node;111 _ = prog_node;
109 unreachable; // we always use llvm
110}112}
src/link/Xcoff.zig+3-1
...@@ -102,9 +102,11 @@ pub fn updateExports(...@@ -102,9 +102,11 @@ pub fn updateExports(
102}102}
103103
104pub fn flush(self: *Xcoff, arena: Allocator, tid: Zcu.PerThread.Id, prog_node: std.Progress.Node) link.File.FlushError!void {104pub fn flush(self: *Xcoff, arena: Allocator, tid: Zcu.PerThread.Id, prog_node: std.Progress.Node) link.File.FlushError!void {
105 if (build_options.skip_non_native and builtin.object_format != .xcoff)
106 @panic("Attempted to compile for object format that was disabled by build configuration");
107
105 _ = self;108 _ = self;
106 _ = arena;109 _ = arena;
107 _ = tid;110 _ = tid;
108 _ = prog_node;111 _ = prog_node;
109 unreachable; // we always use llvm
110}112}