From 4e85bf11856a7fbf6072857f21a326854073b534 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 29 Sep 2021 10:46:32 -0700 Subject: [PATCH] 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. --- src/Compilation.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Compilation.zig b/src/Compilation.zig index cb19a21c15..76a84701ce 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1177,6 +1177,8 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { } hash.add(valgrind); hash.add(single_threaded); + hash.add(use_stage1); + hash.add(use_llvm); hash.add(dll_export_fns); hash.add(options.is_test); hash.add(options.skip_linker_dependencies);