zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 4e85bf11856a7fbf6072857f21a326854073b534 (tree)
parent 99961f22dca7e01b85b7819dcea814ad01b65af5
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Wed, 29 Sep 2021 10:46:32 -0700

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.

Diffstat:
Msrc/Compilation.zig | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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);