mirror of
https://github.com/ziglang/zig.git
synced 2025-12-18 12:13:20 +00:00
macho: skip cache if cache_mode is .whole
This commit is contained in:
parent
a2dbe6589e
commit
efeb031b79
@ -519,7 +519,8 @@ pub fn flushModule(self: *MachO, comp: *Compilation, prog_node: *std.Progress.No
|
|||||||
var needs_full_relink = true;
|
var needs_full_relink = true;
|
||||||
|
|
||||||
cache: {
|
cache: {
|
||||||
if (use_stage1 and self.base.options.disable_lld_caching) break :cache;
|
if ((use_stage1 and self.base.options.disable_lld_caching) or self.base.options.cache_mode == .whole)
|
||||||
|
break :cache;
|
||||||
|
|
||||||
man = comp.cache_parent.obtain();
|
man = comp.cache_parent.obtain();
|
||||||
|
|
||||||
@ -1099,7 +1100,8 @@ pub fn flushModule(self: *MachO, comp: *Compilation, prog_node: *std.Progress.No
|
|||||||
}
|
}
|
||||||
|
|
||||||
cache: {
|
cache: {
|
||||||
if (use_stage1 and self.base.options.disable_lld_caching) break :cache;
|
if ((use_stage1 and self.base.options.disable_lld_caching) or self.base.options.cache_mode == .whole)
|
||||||
|
break :cache;
|
||||||
// Update the file with the digest. If it fails we can continue; it only
|
// Update the file with the digest. If it fails we can continue; it only
|
||||||
// means that the next invocation will have an unnecessary cache miss.
|
// means that the next invocation will have an unnecessary cache miss.
|
||||||
Cache.writeSmallFile(cache_dir_handle, id_symlink_basename, &digest) catch |err| {
|
Cache.writeSmallFile(cache_dir_handle, id_symlink_basename, &digest) catch |err| {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user