Skip to content

Commit 1b6f686

Browse files
committed
dylib: switch from cargo build to cargo rustc
1 parent 81d2ec3 commit 1b6f686

File tree

1 file changed

+2
-2
lines changed
  • crates/spirv-builder/src

1 file changed

+2
-2
lines changed

crates/spirv-builder/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)