File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1201,6 +1201,14 @@ impl<'a> Builder<'a> {
1201
1201
// this), as well as #63012 which is the tracking issue for this
1202
1202
// feature on the rustc side.
1203
1203
cargo. arg ( "-Zbinary-dep-depinfo" ) ;
1204
+ match mode {
1205
+ Mode :: ToolBootstrap => {
1206
+ // Restrict the allowed features to those passed by rustbuild, so we don't depend on nightly accidentally.
1207
+ // HACK: because anyhow does feature detection in build.rs, we need to allow the backtrace feature too.
1208
+ rustflags. arg ( "-Zallow-features=binary-dep-depinfo,backtrace" ) ;
1209
+ }
1210
+ Mode :: Std | Mode :: Rustc | Mode :: ToolStd | Mode :: Codegen | Mode :: ToolRustc => { }
1211
+ }
1204
1212
1205
1213
cargo. arg ( "-j" ) . arg ( self . jobs ( ) . to_string ( ) ) ;
1206
1214
// Remove make-related flags to ensure Cargo can correctly set things up
You can’t perform that action at this time.
0 commit comments