You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/spirv-builder/src/lib.rs
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -406,6 +406,10 @@ pub struct SpirvBuilder {
406
406
/// The cargo command to run, formatted like `cargo {cargo_cmd} ...`. Defaults to `rustc`.
407
407
#[cfg_attr(feature = "clap", clap(skip))]
408
408
pubcargo_cmd:Option<String>,
409
+
/// Whether the cargo command set in `cargo_cmd` behaves like `cargo rustc` and allows passing args such as
410
+
/// `--crate-type dylib`. Defaults to true if `cargo_cmd` is `None` or `Some("rustc")`.
411
+
#[cfg_attr(feature = "clap", clap(skip))]
412
+
pubcargo_cmd_like_rustc:Option<bool>,
409
413
/// Whether to print build.rs cargo metadata (e.g. cargo:rustc-env=var=val). Defaults to [`MetadataPrintout::None`].
410
414
/// Within build scripts, set it to [`MetadataPrintout::DependencyOnly`] or [`MetadataPrintout::Full`] to ensure the build script is rerun on code changes.
411
415
#[cfg_attr(feature = "clap", clap(skip))]
@@ -502,6 +506,7 @@ impl Default for SpirvBuilder {
0 commit comments