authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-09-29 10:46:32-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-09-29 10:46:32-07:00
log4e85bf11856a7fbf6072857f21a326854073b534
tree8327ec7e8e8937a6ec0137f63cba2a2295e8fcbf
parent99961f22dca7e01b85b7819dcea814ad01b65af5

stage2: put use_llvm and use_stage1 into the Module cache hash

This prevents a compiler_rt built with stage2 (which is intentionally different than when built with stage1) from being used for stage1 and vice versa. Fixes the regression from the previous commit.

1 files changed, 2 insertions(+), 0 deletions(-)

src/Compilation.zig+2
...@@ -1177,6 +1177,8 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation {...@@ -1177,6 +1177,8 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation {
1177 }1177 }
1178 hash.add(valgrind);1178 hash.add(valgrind);
1179 hash.add(single_threaded);1179 hash.add(single_threaded);
1180 hash.add(use_stage1);
1181 hash.add(use_llvm);
1180 hash.add(dll_export_fns);1182 hash.add(dll_export_fns);
1181 hash.add(options.is_test);1183 hash.add(options.is_test);
1182 hash.add(options.skip_linker_dependencies);1184 hash.add(options.skip_linker_dependencies);