diff options
| author | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-05-20 03:25:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-20 03:25:19 +0100 |
| commit | 23c817548bbd3988a5fd224b590a4f6102dbe5db (patch) | |
| tree | 5448478794cb493b456de356c2e29fb100e81cfb /lib/std | |
| parent | f2077f57ae03ef21f1bfee6e4e041c5f466fc3be (diff) | |
| parent | 37a9a4e0f16c1df8de3a4add3a9566b24f024a95 (diff) | |
| download | zig-23c817548bbd3988a5fd224b590a4f6102dbe5db.tar.gz zig-23c817548bbd3988a5fd224b590a4f6102dbe5db.zip | |
Merge pull request #23836 from mlugg/incr-fixes
Incremental fixes, refactor `Zcu.File`
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/Build/Cache.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/std/Build/Cache.zig b/lib/std/Build/Cache.zig index 14719db6f9..bf63acdead 100644 --- a/lib/std/Build/Cache.zig +++ b/lib/std/Build/Cache.zig @@ -1011,17 +1011,16 @@ pub const Manifest = struct { } /// Like `addFilePost` but when the file contents have already been loaded from disk. - /// On success, cache takes ownership of `resolved_path`. pub fn addFilePostContents( self: *Manifest, - resolved_path: []u8, + file_path: []const u8, bytes: []const u8, stat: File.Stat, ) !void { assert(self.manifest_file != null); const gpa = self.cache.gpa; - const prefixed_path = try self.cache.findPrefixResolved(resolved_path); + const prefixed_path = try self.cache.findPrefix(file_path); errdefer gpa.free(prefixed_path.sub_path); const gop = try self.files.getOrPutAdapted(gpa, prefixed_path, FilesAdapter{}); |
