diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-02-13 17:23:19 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-13 17:23:19 -0500 |
| commit | a9e1cf3049d1d90d7e62950c3b7f4b088081caa8 (patch) | |
| tree | 22fe9f9f10ab0b6088124949068e6aeb83162a57 /src/main.zig | |
| parent | fc48467a97021cb872ff2a947f96e882274c39c1 (diff) | |
| parent | 35bb823131a93d7407e79897d4cd20ae2a98ca54 (diff) | |
| download | zig-a9e1cf3049d1d90d7e62950c3b7f4b088081caa8.tar.gz zig-a9e1cf3049d1d90d7e62950c3b7f4b088081caa8.zip | |
Merge pull request #14571 from ziglang/more-build-zig
std.Build.ConfigHeaderStep: support sentinel-terminated strings
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig index 10b3de399d..cacdb83334 100644 --- a/src/main.zig +++ b/src/main.zig @@ -20,7 +20,7 @@ const LibCInstallation = @import("libc_installation.zig").LibCInstallation; const wasi_libc = @import("wasi_libc.zig"); const translate_c = @import("translate_c.zig"); const clang = @import("clang.zig"); -const Cache = @import("Cache.zig"); +const Cache = std.Build.Cache; const target_util = @import("target.zig"); const ThreadPool = @import("ThreadPool.zig"); const crash_report = @import("crash_report.zig"); @@ -3615,7 +3615,7 @@ fn cmdTranslateC(comp: *Compilation, arena: Allocator, enable_cache: bool) !void defer if (enable_cache) man.deinit(); man.hash.add(@as(u16, 0xb945)); // Random number to distinguish translate-c from compiling C objects - man.hashCSource(c_source_file) catch |err| { + Compilation.cache_helpers.hashCSource(&man, c_source_file) catch |err| { fatal("unable to process '{s}': {s}", .{ c_source_file.src_path, @errorName(err) }); }; |
