aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-09-25 14:18:49 -0700
committerGitHub <noreply@github.com>2025-09-25 14:18:49 -0700
commit2a88a6a456bebcf6c28d7110a5cd60213f43508e (patch)
tree05c944a0fb7837d2db65aacee07abea80b4a2e24 /lib/std/Build
parenta73f246b2963de0024b9b7070448862e855d5a04 (diff)
parent5f763b7dc581d1f9078edbb668a48af40283a120 (diff)
downloadzig-2a88a6a456bebcf6c28d7110a5cd60213f43508e.tar.gz
zig-2a88a6a456bebcf6c28d7110a5cd60213f43508e.zip
Merge pull request #24497 from ziglang/aro-translate-c
compiler: update aro and translate-c to latest; delete clang translate-c
Diffstat (limited to 'lib/std/Build')
-rw-r--r--lib/std/Build/Cache.zig14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/std/Build/Cache.zig b/lib/std/Build/Cache.zig
index 80170e1752..14063001a2 100644
--- a/lib/std/Build/Cache.zig
+++ b/lib/std/Build/Cache.zig
@@ -459,9 +459,9 @@ pub const Manifest = struct {
}
}
- pub fn addDepFile(self: *Manifest, dir: fs.Dir, dep_file_basename: []const u8) !void {
+ pub fn addDepFile(self: *Manifest, dir: fs.Dir, dep_file_sub_path: []const u8) !void {
assert(self.manifest_file == null);
- return self.addDepFileMaybePost(dir, dep_file_basename);
+ return self.addDepFileMaybePost(dir, dep_file_sub_path);
}
pub const HitError = error{
@@ -1049,14 +1049,14 @@ pub const Manifest = struct {
self.hash.hasher.update(&new_file.bin_digest);
}
- pub fn addDepFilePost(self: *Manifest, dir: fs.Dir, dep_file_basename: []const u8) !void {
+ pub fn addDepFilePost(self: *Manifest, dir: fs.Dir, dep_file_sub_path: []const u8) !void {
assert(self.manifest_file != null);
- return self.addDepFileMaybePost(dir, dep_file_basename);
+ return self.addDepFileMaybePost(dir, dep_file_sub_path);
}
- fn addDepFileMaybePost(self: *Manifest, dir: fs.Dir, dep_file_basename: []const u8) !void {
+ fn addDepFileMaybePost(self: *Manifest, dir: fs.Dir, dep_file_sub_path: []const u8) !void {
const gpa = self.cache.gpa;
- const dep_file_contents = try dir.readFileAlloc(dep_file_basename, gpa, .limited(manifest_file_size_max));
+ const dep_file_contents = try dir.readFileAlloc(dep_file_sub_path, gpa, .limited(manifest_file_size_max));
defer gpa.free(dep_file_contents);
var error_buf: std.ArrayListUnmanaged(u8) = .empty;
@@ -1083,7 +1083,7 @@ pub const Manifest = struct {
},
else => |err| {
try err.printError(gpa, &error_buf);
- log.err("failed parsing {s}: {s}", .{ dep_file_basename, error_buf.items });
+ log.err("failed parsing {s}: {s}", .{ dep_file_sub_path, error_buf.items });
return error.InvalidDepFile;
},
}