File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,6 @@ package = "rustc_codegen_spirv"
161
161
format ! ( "could not create cache directory '{}'" , cache_dir. display( ) )
162
162
} ) ?;
163
163
164
- // TODO what about lockfiles?
165
- // let spirv_version = self.spirv_cli().context("running spirv cli")?;
166
164
let source = SpirvSource :: new (
167
165
& self . spirv_install . shader_crate ,
168
166
self . spirv_install . spirv_builder_source . as_deref ( ) ,
@@ -216,8 +214,11 @@ package = "rustc_codegen_spirv"
216
214
)
217
215
. context ( "ensuring toolchain and components exist" ) ?;
218
216
219
- crate :: user_output!( "Compiling `rustc_codegen_spirv` from source {}\n " , source, ) ;
217
+ // to prevent unsupported version errors when using older toolchains
218
+ log:: debug!( "remove Cargo.lock" ) ;
219
+ std:: fs:: remove_file ( checkout. join ( "Cargo.lock" ) ) . context ( "remove Cargo.lock" ) ?;
220
220
221
+ crate :: user_output!( "Compiling `rustc_codegen_spirv` from source {}\n " , source, ) ;
221
222
let mut build_command = std:: process:: Command :: new ( "cargo" ) ;
222
223
build_command
223
224
. current_dir ( & checkout)
You can’t perform that action at this time.
0 commit comments