diff options
| author | Sahnvour <sahnvour@pm.me> | 2019-08-22 22:46:37 +0200 |
|---|---|---|
| committer | Sahnvour <sahnvour@pm.me> | 2019-08-24 15:30:23 +0200 |
| commit | 4c882e731f26aa595a2b6c17725f01bbc1974e37 (patch) | |
| tree | 23f5652288c4a7fc38a43de3042f217b5ab1f3fa /tools/process_headers.zig | |
| parent | 1498ccac2a7c4370ae09cd69a0f2ade7758fcd64 (diff) | |
| download | zig-4c882e731f26aa595a2b6c17725f01bbc1974e37.tar.gz zig-4c882e731f26aa595a2b6c17725f01bbc1974e37.zip | |
hash_map: adding a StringHashMap for convenience
Diffstat (limited to 'tools/process_headers.zig')
| -rw-r--r-- | tools/process_headers.zig | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/process_headers.zig b/tools/process_headers.zig index 805fc3d5f7..7bd7ca08d2 100644 --- a/tools/process_headers.zig +++ b/tools/process_headers.zig @@ -504,12 +504,9 @@ const Contents = struct { } }; -comptime { - @compileError("the behavior of std.AutoHashMap changed and []const u8 will be treated as a pointer. will need to update the hash maps to actually do some kind of hashing on the slices."); -} -const HashToContents = std.AutoHashMap([]const u8, Contents); +const HashToContents = std.StringHashMap(Contents); const TargetToHash = std.HashMap(DestTarget, []const u8, DestTarget.hash, DestTarget.eql); -const PathTable = std.AutoHashMap([]const u8, *TargetToHash); +const PathTable = std.StringHashMap(*TargetToHash); const LibCVendor = enum { musl, |
