link: fix goff and xcoff flush

This commit is contained in:
mlugg
2025-06-11 02:09:09 +01:00
parent afa07f723f
commit 22e961070d
2 changed files with 6 additions and 2 deletions

View File

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

View File

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