Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions crates/cargo-gpu/src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,14 @@ package = "rustc_codegen_spirv"
let target_spec_dir = update_target_specs_files(&source, &dummy_metadata, !skip_rebuild)
.context("writing target spec files")?;

if !skip_rebuild {
log::debug!("ensure_toolchain_and_components_exist");
crate::install_toolchain::ensure_toolchain_and_components_exist(
&toolchain_channel,
self.auto_install_rust_toolchain,
)
.context("ensuring toolchain and components exist")?;
log::debug!("ensure_toolchain_and_components_exist");
crate::install_toolchain::ensure_toolchain_and_components_exist(
&toolchain_channel,
self.auto_install_rust_toolchain,
)
.context("ensuring toolchain and components exist")?;

if !skip_rebuild {
// to prevent unsupported version errors when using older toolchains
if !source.is_path() {
log::debug!("remove Cargo.lock");
Expand Down
4 changes: 1 addition & 3 deletions crates/cargo-gpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,8 @@ impl Command {
command.build.watch = false;
command.run()?;
command.build.watch = true;
command.run()?;
} else {
command.run()?;
}
command.run()?;
}
Self::Show(show) => show.run()?,
Self::DumpUsage => dump_full_usage_for_readme()?,
Expand Down
Loading