aboutsummaryrefslogtreecommitdiff
path: root/src/glibc.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-03-21 19:53:24 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-03-21 19:56:30 -0700
commit2f4bbd6c637782eb985860255cf70011bbadd452 (patch)
tree8baa0a2c003b66c3e449af9d73bc33985d13d0f3 /src/glibc.zig
parentebec7336e23404ab091d34303055cd3b8a0088a5 (diff)
downloadzig-2f4bbd6c637782eb985860255cf70011bbadd452.tar.gz
zig-2f4bbd6c637782eb985860255cf70011bbadd452.zip
std.Build.Cache: use an array hash map for files
Rather than an ArrayList. Provides deduplication.
Diffstat (limited to 'src/glibc.zig')
-rw-r--r--src/glibc.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glibc.zig b/src/glibc.zig
index 9765e0ad78..365f5cab2b 100644
--- a/src/glibc.zig
+++ b/src/glibc.zig
@@ -713,7 +713,7 @@ pub fn buildSharedObjects(comp: *Compilation, prog_node: *std.Progress.Node) !vo
};
defer o_directory.handle.close();
- const abilists_contents = man.files.items[abilists_index].contents.?;
+ const abilists_contents = man.files.keys()[abilists_index].contents.?;
const metadata = try loadMetaData(comp.gpa, abilists_contents);
defer metadata.destroy(comp.gpa);