| ... | ... | @@ -178,13 +178,15 @@ pub fn buildImportLib(comp: *Compilation, lib_name: []const u8) !void { |
| 178 | 178 | |
| 179 | 179 | const target = comp.getTarget(); |
| 180 | 180 | |
| 181 | // Use the global cache directory. |
| 181 | 182 | var cache: Cache = .{ |
| 182 | 183 | .gpa = comp.gpa, |
| 183 | | .manifest_dir = comp.cache_parent.manifest_dir, |
| 184 | .manifest_dir = try comp.global_cache_directory.handle.makeOpenPath("h", .{}), |
| 184 | 185 | }; |
| 185 | | for (comp.cache_parent.prefixes()) |prefix| { |
| 186 | | cache.addPrefix(prefix); |
| 187 | | } |
| 186 | cache.addPrefix(.{ .path = null, .handle = std.fs.cwd() }); |
| 187 | cache.addPrefix(comp.zig_lib_directory); |
| 188 | cache.addPrefix(comp.global_cache_directory); |
| 189 | defer cache.manifest_dir.close(); |
| 188 | 190 | |
| 189 | 191 | cache.hash.addBytes(build_options.version); |
| 190 | 192 | cache.hash.addOptionalBytes(comp.zig_lib_directory.path); |