From 96f9e20152001c7611b2c40f36ef9a522165d9d0 Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Tue, 17 Oct 2023 11:51:39 +0300 Subject: add c_frontend to translate-c cache hash --- src/Compilation.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Compilation.zig') 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. -- cgit v1.2.3