| ... | @@ -3540,7 +3540,6 @@ pub fn cImport(comp: *Compilation, c_src: []const u8) !CImportResult { | ... | @@ -3540,7 +3540,6 @@ pub fn cImport(comp: *Compilation, c_src: []const u8) !CImportResult { |
| 3540 | const cimport_zig_basename = "cimport.zig"; | 3540 | const cimport_zig_basename = "cimport.zig"; |
| 3541 | | 3541 | |
| 3542 | var man = comp.obtainCObjectCacheManifest(); | 3542 | var man = comp.obtainCObjectCacheManifest(); |
| 3543 | man.want_shared_lock = false; | | |
| 3544 | defer man.deinit(); | 3543 | defer man.deinit(); |
| 3545 | | 3544 | |
| 3546 | man.hash.add(@as(u16, 0xb945)); // Random number to distinguish translate-c from compiling C objects | 3545 | man.hash.add(@as(u16, 0xb945)); // Random number to distinguish translate-c from compiling C objects |
| ... | @@ -3654,7 +3653,6 @@ pub fn cImport(comp: *Compilation, c_src: []const u8) !CImportResult { | ... | @@ -3654,7 +3653,6 @@ pub fn cImport(comp: *Compilation, c_src: []const u8) !CImportResult { |
| 3654 | // possible we had a hit and the manifest is dirty, for example if the file mtime changed but | 3653 | // possible we had a hit and the manifest is dirty, for example if the file mtime changed but |
| 3655 | // the contents were the same, we hit the cache but the manifest is dirty and we need to update | 3654 | // the contents were the same, we hit the cache but the manifest is dirty and we need to update |
| 3656 | // it to prevent doing a full file content comparison the next time around. | 3655 | // it to prevent doing a full file content comparison the next time around. |
| 3657 | man.want_shared_lock = true; | | |
| 3658 | man.writeManifest() catch |err| { | 3656 | man.writeManifest() catch |err| { |
| 3659 | log.warn("failed to write cache manifest for C import: {s}", .{@errorName(err)}); | 3657 | log.warn("failed to write cache manifest for C import: {s}", .{@errorName(err)}); |
| 3660 | }; | 3658 | }; |
| ... | @@ -3829,7 +3827,6 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_obj_prog_node: *std.P | ... | @@ -3829,7 +3827,6 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_obj_prog_node: *std.P |
| 3829 | } | 3827 | } |
| 3830 | | 3828 | |
| 3831 | var man = comp.obtainCObjectCacheManifest(); | 3829 | var man = comp.obtainCObjectCacheManifest(); |
| 3832 | man.want_shared_lock = false; | | |
| 3833 | defer man.deinit(); | 3830 | defer man.deinit(); |
| 3834 | | 3831 | |
| 3835 | man.hash.add(comp.clang_preprocessor_mode); | 3832 | man.hash.add(comp.clang_preprocessor_mode); |
| ... | @@ -4125,7 +4122,6 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_obj_prog_node: *std.P | ... | @@ -4125,7 +4122,6 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_obj_prog_node: *std.P |
| 4125 | // possible we had a hit and the manifest is dirty, for example if the file mtime changed but | 4122 | // possible we had a hit and the manifest is dirty, for example if the file mtime changed but |
| 4126 | // the contents were the same, we hit the cache but the manifest is dirty and we need to update | 4123 | // the contents were the same, we hit the cache but the manifest is dirty and we need to update |
| 4127 | // it to prevent doing a full file content comparison the next time around. | 4124 | // it to prevent doing a full file content comparison the next time around. |
| 4128 | man.want_shared_lock = true; | | |
| 4129 | man.writeManifest() catch |err| { | 4125 | man.writeManifest() catch |err| { |
| 4130 | log.warn("failed to write cache manifest when compiling '{s}': {s}", .{ c_object.src.src_path, @errorName(err) }); | 4126 | log.warn("failed to write cache manifest when compiling '{s}': {s}", .{ c_object.src.src_path, @errorName(err) }); |
| 4131 | }; | 4127 | }; |