@@ -34,11 +34,15 @@ rust_toolchain(
3434 "rust//constraints:stage2" : "rust//stage1:clippy-driver" ,
3535 }),
3636 compiler = select ({
37- "rust//constraints:stage1" : "rust//stage0:rustc" ,
38- "rust//constraints:stage2" : select ({
39- "rust//constraints:library" : "rust//stage1:rustc" ,
37+ "rust//constraints:stage1" : select ({
38+ "rust//constraints:compiler" : "rust//stage0:rustc" ,
4039 "rust//constraints:library-build-script" : "rust//stage0:rustc" ,
40+ "rust//constraints:library" : "rust//stage1:rustc" ,
41+ }),
42+ "rust//constraints:stage2" : select ({
4143 "rust//constraints:compiler" : "rust//stage1:rustc" ,
44+ "rust//constraints:library-build-script" : "rust//stage1:rustc" ,
45+ "rust//constraints:library" : "rust//stage2:rustc" ,
4246 }),
4347 }),
4448 exec_compatible_with = [
@@ -60,7 +64,10 @@ rust_toolchain(
6064 "rust//constraints:opt-level=3" : "-Copt-level=3" ,
6165 }),
6266 ] + select ({
63- "rust//constraints:stage1" : ["--cfg=bootstrap" ],
67+ "rust//constraints:stage1" : select ({
68+ "rust//constraints:compiler" : ["--cfg=bootstrap" ],
69+ "rust//constraints:library" : [],
70+ }),
6471 "rust//constraints:stage2" : [],
6572 }) + select ({
6673 "DEFAULT" : [],
@@ -72,19 +79,32 @@ rust_toolchain(
7279 }),
7380 sysroot = select ({
7481 "rust//constraints:library" : None ,
75- "rust//constraints:library-build-script" : "rust//stage0:sysroot" ,
82+ "rust//constraints:library-build-script" : select ({
83+ "rust//constraints:stage1" : "rust//stage0:sysroot" ,
84+ "rust//constraints:stage2" : dict (
85+ alloc = "rust//stage1:alloc" ,
86+ compiler_builtins = "rust//stage1:compiler_builtins" ,
87+ core = "rust//stage1:core" ,
88+ panic_abort = "rust//stage1:panic_abort" ,
89+ panic_unwind = "rust//stage1:panic_unwind" ,
90+ proc_macro = "rust//stage1:proc_macro" ,
91+ rust_allocator = "rust//stage1:rust_allocator" ,
92+ std = "rust//stage1:std" ,
93+ test = "rust//stage1:test" ,
94+ ),
95+ }),
7696 "rust//constraints:compiler" : select ({
7797 "rust//constraints:stage1" : "rust//stage0:sysroot" ,
7898 "rust//constraints:stage2" : dict (
79- alloc = "rust//stage2 :alloc" ,
80- compiler_builtins = "rust//stage2 :compiler_builtins" ,
81- core = "rust//stage2 :core" ,
82- panic_abort = "rust//stage2 :panic_abort" ,
83- panic_unwind = "rust//stage2 :panic_unwind" ,
84- proc_macro = "rust//stage2 :proc_macro" ,
85- rust_allocator = "rust//stage2 :rust_allocator" ,
86- std = "rust//stage2 :std" ,
87- test = "rust//stage2 :test" ,
99+ alloc = "rust//stage1 :alloc" ,
100+ compiler_builtins = "rust//stage1 :compiler_builtins" ,
101+ core = "rust//stage1 :core" ,
102+ panic_abort = "rust//stage1 :panic_abort" ,
103+ panic_unwind = "rust//stage1 :panic_unwind" ,
104+ proc_macro = "rust//stage1 :proc_macro" ,
105+ rust_allocator = "rust//stage1 :rust_allocator" ,
106+ std = "rust//stage1 :std" ,
107+ test = "rust//stage1 :test" ,
88108 ),
89109 }),
90110 }),
0 commit comments