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/main.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.zig') diff --git a/src/main.zig b/src/main.zig index 14d187796c..d30fe16dda 100644 --- a/src/main.zig +++ b/src/main.zig @@ -4238,6 +4238,7 @@ fn cmdTranslateC(comp: *Compilation, arena: Allocator, fancy_output: ?*Compilati defer man.deinit(); man.hash.add(@as(u16, 0xb945)); // Random number to distinguish translate-c from compiling C objects + man.hash.add(comp.c_frontend); Compilation.cache_helpers.hashCSource(&man, c_source_file) catch |err| { fatal("unable to process '{s}': {s}", .{ c_source_file.src_path, @errorName(err) }); }; -- cgit v1.2.3