File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -264,14 +264,14 @@ package = "rustc_codegen_spirv"
264
264
let target_spec_dir = update_target_specs_files ( & source, & dummy_metadata, !skip_rebuild)
265
265
. context ( "writing target spec files" ) ?;
266
266
267
- if !skip_rebuild {
268
- log:: debug!( "ensure_toolchain_and_components_exist" ) ;
269
- crate :: install_toolchain:: ensure_toolchain_and_components_exist (
270
- & toolchain_channel,
271
- self . auto_install_rust_toolchain ,
272
- )
273
- . context ( "ensuring toolchain and components exist" ) ?;
267
+ log:: debug!( "ensure_toolchain_and_components_exist" ) ;
268
+ crate :: install_toolchain:: ensure_toolchain_and_components_exist (
269
+ & toolchain_channel,
270
+ self . auto_install_rust_toolchain ,
271
+ )
272
+ . context ( "ensuring toolchain and components exist" ) ?;
274
273
274
+ if !skip_rebuild {
275
275
// to prevent unsupported version errors when using older toolchains
276
276
if !source. is_path ( ) {
277
277
log:: debug!( "remove Cargo.lock" ) ;
Original file line number Diff line number Diff line change @@ -145,10 +145,8 @@ impl Command {
145
145
command. build . watch = false ;
146
146
command. run ( ) ?;
147
147
command. build . watch = true ;
148
- command. run ( ) ?;
149
- } else {
150
- command. run ( ) ?;
151
148
}
149
+ command. run ( ) ?;
152
150
}
153
151
Self :: Show ( show) => show. run ( ) ?,
154
152
Self :: DumpUsage => dump_full_usage_for_readme ( ) ?,
You can’t perform that action at this time.
0 commit comments