link: fix goff and xcoff flush
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user