@@ -36,16 +36,14 @@ rust_toolchain(
36
36
compiler = select ({
37
37
"rust//constraints:stage1" : "rust//stage0:rustc" ,
38
38
"rust//constraints:stage2" : select ({
39
- "rust//constraints:sysroot-deps=explicit" : "rust//stage1:rustc" ,
40
- "rust//constraints:sysroot-deps=implicit" : select ({
41
- "rust//constraints:library" : "rust//stage0:rustc" ,
42
- "rust//constraints:compiler" : "rust//stage1:rustc" ,
43
- }),
39
+ "rust//constraints:library" : "rust//stage1:rustc" ,
40
+ "rust//constraints:library-build-script" : "rust//stage0:rustc" ,
41
+ "rust//constraints:compiler" : "rust//stage1:rustc" ,
44
42
}),
45
43
}),
46
44
exec_compatible_with = [
47
45
"rust//constraints:opt-level=0" ,
48
- "rust//constraints:sysroot-deps=implicit " ,
46
+ "rust//constraints:build-script=true " ,
49
47
] + select ({
50
48
"rust//constraints:compiler" : ["rust//constraints:compiler" ],
51
49
"rust//constraints:library" : ["rust//constraints:library" ],
@@ -71,33 +69,31 @@ rust_toolchain(
71
69
"rust//constraints:stage2" : "rust//stage1:rustdoc" ,
72
70
}),
73
71
sysroot = select ({
74
- "rust//constraints:sysroot-deps=explicit" : None ,
75
- "rust//constraints:sysroot-deps=implicit" : select ({
76
- "rust//constraints:library" : "rust//stage0:sysroot" ,
77
- "rust//constraints:compiler" : select ({
78
- "rust//constraints:stage1" : dict (
79
- alloc = "rust//stage1:alloc" ,
80
- compiler_builtins = "rust//stage1:compiler_builtins" ,
81
- core = "rust//stage1:core" ,
82
- panic_abort = "rust//stage1:panic_abort" ,
83
- panic_unwind = "rust//stage1:panic_unwind" ,
84
- proc_macro = "rust//stage1:proc_macro" ,
85
- rust_allocator = "rust//stage1:rust_allocator" ,
86
- std = "rust//stage1:std" ,
87
- test = "rust//stage1:test" ,
88
- ),
89
- "rust//constraints:stage2" : dict (
90
- alloc = "rust//stage2:alloc" ,
91
- compiler_builtins = "rust//stage2:compiler_builtins" ,
92
- core = "rust//stage2:core" ,
93
- panic_abort = "rust//stage2:panic_abort" ,
94
- panic_unwind = "rust//stage2:panic_unwind" ,
95
- proc_macro = "rust//stage2:proc_macro" ,
96
- rust_allocator = "rust//stage2:rust_allocator" ,
97
- std = "rust//stage2:std" ,
98
- test = "rust//stage2:test" ,
99
- ),
100
- }),
72
+ "rust//constraints:library" : None ,
73
+ "rust//constraints:library-build-script" : "rust//stage0:sysroot" ,
74
+ "rust//constraints:compiler" : select ({
75
+ "rust//constraints:stage1" : dict (
76
+ alloc = "rust//stage1:alloc" ,
77
+ compiler_builtins = "rust//stage1:compiler_builtins" ,
78
+ core = "rust//stage1:core" ,
79
+ panic_abort = "rust//stage1:panic_abort" ,
80
+ panic_unwind = "rust//stage1:panic_unwind" ,
81
+ proc_macro = "rust//stage1:proc_macro" ,
82
+ rust_allocator = "rust//stage1:rust_allocator" ,
83
+ std = "rust//stage1:std" ,
84
+ test = "rust//stage1:test" ,
85
+ ),
86
+ "rust//constraints:stage2" : dict (
87
+ alloc = "rust//stage2:alloc" ,
88
+ compiler_builtins = "rust//stage2:compiler_builtins" ,
89
+ core = "rust//stage2:core" ,
90
+ panic_abort = "rust//stage2:panic_abort" ,
91
+ panic_unwind = "rust//stage2:panic_unwind" ,
92
+ proc_macro = "rust//stage2:proc_macro" ,
93
+ rust_allocator = "rust//stage2:rust_allocator" ,
94
+ std = "rust//stage2:std" ,
95
+ test = "rust//stage2:test" ,
96
+ ),
101
97
}),
102
98
}),
103
99
visibility = ["PUBLIC" ],
0 commit comments