Skip to content

Commit

Permalink
Skip toolchain check for tier 3 targets
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniusnaumann committed Aug 4, 2024
1 parent 2d9d737 commit 3936dde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/commands/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ fn check_installed_toolchains(targets: &[Target]) -> Vec<&'static str> {

targets
.iter()
.filter(|t| !t.platform().is_tier_3())
.flat_map(|t| t.architectures())
.filter(|arch| {
!installed
Expand Down
6 changes: 1 addition & 5 deletions src/targets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl Target {
.into_iter()
.map(|arch| {
// FIXME: Remove nightly for Tier 3 targets here once build-std is stabilized
let mut cmd = if self.is_tier_3() { command("cargo +nightly build -Z build-std") } else { command("cargo build") };
let mut cmd = if self.platform().is_tier_3() { command("cargo +nightly build -Z build-std") } else { command("cargo build") };
cmd.arg("--target").arg(arch);

match mode {
Expand Down Expand Up @@ -179,10 +179,6 @@ impl Target {
library_file_name(lib_name, lib_type)
)
}

fn is_tier_3(&self) -> bool {
self.platform().is_tier_3()
}
}

pub fn library_file_name(lib_name: &str, lib_type: LibType) -> String {
Expand Down

0 comments on commit 3936dde

Please sign in to comment.