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/main.zig | |
| parent | e765495b114af3417aea4cffcd7c37f400aab3fe (diff) | |
| download | zig-96f9e20152001c7611b2c40f36ef9a522165d9d0.tar.gz zig-96f9e20152001c7611b2c40f36ef9a522165d9d0.zip | |
add c_frontend to translate-c cache hash
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 1 |
1 files changed, 1 insertions, 0 deletions
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) }); }; |
