@@ -34,11 +34,15 @@ rust_toolchain(
34
34
"rust//constraints:stage2" : "rust//stage1:clippy-driver" ,
35
35
}),
36
36
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" ,
40
39
"rust//constraints:library-build-script" : "rust//stage0:rustc" ,
40
+ "rust//constraints:library" : "rust//stage1:rustc" ,
41
+ }),
42
+ "rust//constraints:stage2" : select ({
41
43
"rust//constraints:compiler" : "rust//stage1:rustc" ,
44
+ "rust//constraints:library-build-script" : "rust//stage1:rustc" ,
45
+ "rust//constraints:library" : "rust//stage2:rustc" ,
42
46
}),
43
47
}),
44
48
exec_compatible_with = [
@@ -60,7 +64,10 @@ rust_toolchain(
60
64
"rust//constraints:opt-level=3" : "-Copt-level=3" ,
61
65
}),
62
66
] + select ({
63
- "rust//constraints:stage1" : ["--cfg=bootstrap" ],
67
+ "rust//constraints:stage1" : select ({
68
+ "rust//constraints:compiler" : ["--cfg=bootstrap" ],
69
+ "rust//constraints:library" : [],
70
+ }),
64
71
"rust//constraints:stage2" : [],
65
72
}) + select ({
66
73
"DEFAULT" : [],
@@ -72,19 +79,32 @@ rust_toolchain(
72
79
}),
73
80
sysroot = select ({
74
81
"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
+ }),
76
96
"rust//constraints:compiler" : select ({
77
97
"rust//constraints:stage1" : "rust//stage0:sysroot" ,
78
98
"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" ,
88
108
),
89
109
}),
90
110
}),
0 commit comments