mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
macho: require an exclusive lock to the Cache.Manifest
This commit is contained in:
parent
fe6dcdba14
commit
dcdbfba770
@ -469,10 +469,11 @@ pub fn flushModule(self: *MachO, comp: *Compilation, prog_node: *std.Progress.No
|
||||
|
||||
const cache_dir_handle = module.zig_cache_artifact_directory.handle;
|
||||
var man: Cache.Manifest = undefined;
|
||||
defer if (!self.base.options.disable_lld_caching) man.deinit();
|
||||
defer man.deinit();
|
||||
|
||||
var digest: [Cache.hex_digest_len]u8 = undefined;
|
||||
man = comp.cache_parent.obtain();
|
||||
man.want_shared_lock = false;
|
||||
self.base.releaseLock();
|
||||
|
||||
man.hash.addListOfBytes(libs.keys());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user