mirror of
https://github.com/ziglang/zig.git
synced 2025-12-28 00:53:18 +00:00
link.MachO: fix error reporting in flushModule
This commit is contained in:
parent
ed810eeb06
commit
eda8b6e137
@ -608,7 +608,10 @@ pub fn flushModule(self: *MachO, arena: Allocator, tid: Zcu.PerThread.Id, prog_n
|
||||
else => |e| return diags.fail("failed to write code signature: {s}", .{@errorName(e)}),
|
||||
};
|
||||
const emit = self.base.emit;
|
||||
try invalidateKernelCache(emit.root_dir.handle, emit.sub_path);
|
||||
invalidateKernelCache(emit.root_dir.handle, emit.sub_path) catch |err| switch (err) {
|
||||
error.OutOfMemory => return error.OutOfMemory,
|
||||
else => |e| return diags.fail("failed to invalidate kernel cache: {s}", .{@errorName(e)}),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user