diff options
| author | Veikka Tuominen <git@vexu.eu> | 2023-10-17 11:51:39 +0300 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2023-10-17 11:55:17 +0300 |
| commit | 96f9e20152001c7611b2c40f36ef9a522165d9d0 (patch) | |
| tree | 696de46e18d697cd772ccf9c36b7a967ca50749e /src/Compilation.zig | |
| parent | e765495b114af3417aea4cffcd7c37f400aab3fe (diff) | |
| download | zig-96f9e20152001c7611b2c40f36ef9a522165d9d0.tar.gz zig-96f9e20152001c7611b2c40f36ef9a522165d9d0.zip | |
add c_frontend to translate-c cache hash
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 4f26c95ea9..cc922998c3 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -3936,6 +3936,7 @@ pub fn cImport(comp: *Compilation, c_src: []const u8) !CImportResult { man.hash.add(@as(u16, 0xb945)); // Random number to distinguish translate-c from compiling C objects man.hash.addBytes(c_src); + man.hash.add(comp.c_frontend); // If the previous invocation resulted in clang errors, we will see a hit // here with 0 files in the manifest, in which case it is actually a miss. |
