aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-01-09 01:11:15 -0800
committerGitHub <noreply@github.com>2024-01-09 01:11:15 -0800
commit60094cc3fc979df0928c412c9fded457172f2060 (patch)
treea5dae37962a8cf38d257609a87b7dce5dc2e579d /src/Compilation.zig
parentf12ec02bd780f58d8c35b1fe80e0955c2591e0a4 (diff)
parentcf5a5dc8b521a145112e9619563cc72d3c26c0e9 (diff)
downloadzig-60094cc3fc979df0928c412c9fded457172f2060.tar.gz
zig-60094cc3fc979df0928c412c9fded457172f2060.zip
Merge pull request #18491 from ziglang/fix-mod-link-obj-path
std.Build.Step.Compile: fix link object paths
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index 4ca0a4cd72..ccd64ca9b3 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -2055,11 +2055,11 @@ pub fn update(comp: *Compilation, main_progress_node: *std.Progress.Node) !void
const is_hit = man.hit() catch |err| {
const i = man.failed_file_index orelse return err;
const pp = man.files.items[i].prefixed_path orelse return err;
- const prefix = man.cache.prefixes()[pp.prefix].path orelse "";
+ const prefix = man.cache.prefixes()[pp.prefix];
return comp.setMiscFailure(
.check_whole_cache,
- "unable to check cache: stat file '{}{s}{s}' failed: {s}",
- .{ comp.local_cache_directory, prefix, pp.sub_path, @errorName(err) },
+ "unable to check cache: stat file '{}{s}' failed: {s}",
+ .{ prefix, pp.sub_path, @errorName(err) },
);
};
if (is_hit) {