mirror of
https://github.com/ziglang/zig.git
synced 2025-12-29 09:33:18 +00:00
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.
This commit is contained in:
parent
c7028ce0c6
commit
8cbcc61c4d
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user