From 8cbcc61c4d720d7ffa356209762e1af74661bbf8 Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Tue, 1 Dec 2020 17:03:56 +0100 Subject: Make sure to include the root_name in the cache. This fixes a bug where the caching system did not notice when the --name flag changed. --- src/Compilation.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Compilation.zig b/src/Compilation.zig index e236fcea43..590eb95cca 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -665,6 +665,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { cache.hash.add(options.output_mode); cache.hash.add(options.machine_code_model); cache.hash.add(options.emit_bin != null); + cache.hash.addBytes(options.root_name); // TODO audit this and make sure everything is in it const module: ?*Module = if (options.root_pkg) |root_pkg| blk: { -- cgit v1.2.3