File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ pub struct SpirvBuilder {
403403 /// The path to the shader crate to compile
404404 #[ cfg_attr( feature = "clap" , clap( skip) ) ]
405405 pub path_to_crate : Option < PathBuf > ,
406- /// The cargo command to run, formatted like `cargo {cargo_cmd} ...`. Defaults to `build `.
406+ /// The cargo command to run, formatted like `cargo {cargo_cmd} ...`. Defaults to `rustc `.
407407 #[ cfg_attr( feature = "clap" , clap( skip) ) ]
408408 pub cargo_cmd : Option < String > ,
409409 /// Whether to print build.rs cargo metadata (e.g. cargo:rustc-env=var=val). Defaults to [`MetadataPrintout::None`].
@@ -1005,7 +1005,7 @@ fn invoke_rustc(builder: &SpirvBuilder) -> Result<PathBuf, SpirvBuilderError> {
10051005 cargo. arg ( format ! ( "+{toolchain}" ) ) ;
10061006 }
10071007
1008- let cargo_cmd = builder. cargo_cmd . as_ref ( ) . map_or ( "build " , |s| s. as_str ( ) ) ;
1008+ let cargo_cmd = builder. cargo_cmd . as_ref ( ) . map_or ( "rustc " , |s| s. as_str ( ) ) ;
10091009 let profile = if builder. release { "release" } else { "dev" } ;
10101010 cargo. args ( [
10111011 cargo_cmd,
You can’t perform that action at this time.
0 commit comments