| ... | @@ -1123,6 +1123,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { | ... | @@ -1123,6 +1123,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { |
| 1123 | cache.hash.add(options.machine_code_model); | 1123 | cache.hash.add(options.machine_code_model); |
| 1124 | cache.hash.addOptionalEmitLoc(options.emit_bin); | 1124 | cache.hash.addOptionalEmitLoc(options.emit_bin); |
| 1125 | cache.hash.addBytes(options.root_name); | 1125 | cache.hash.addBytes(options.root_name); |
| | 1126 | if (options.target.os.tag == .wasi) cache.hash.add(wasi_exec_model); |
| 1126 | // TODO audit this and make sure everything is in it | 1127 | // TODO audit this and make sure everything is in it |
| 1127 | | 1128 | |
| 1128 | const module: ?*Module = if (options.root_pkg) |root_pkg| blk: { | 1129 | const module: ?*Module = if (options.root_pkg) |root_pkg| blk: { |