diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-02-05 19:39:04 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-02-13 06:42:25 -0700 |
| commit | 9cb52ca6ce7043ba0ce08d5650ac542075f10685 (patch) | |
| tree | 272ce33129d65e8af6f068fb620ac5a3d33370fc /src/main.zig | |
| parent | 2654d0c66860d32714e33404554482cbc0cbabf5 (diff) | |
| download | zig-9cb52ca6ce7043ba0ce08d5650ac542075f10685.tar.gz zig-9cb52ca6ce7043ba0ce08d5650ac542075f10685.zip | |
move the cache system from compiler to std lib
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 00a7b126c8..2add2f9165 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"); @@ -3607,7 +3607,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) }); }; |
