Skip to content

Commit

Permalink
fix(xtask): don't test feature = "shell" on unsupported arches
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Dec 12, 2024
1 parent a56f541 commit c86d541
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions xtask/src/clippy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl Clippy {
let triple = arch.triple();
cmd!(sh, "cargo clippy --target={triple}").run()?;
cmd!(sh, "cargo clippy --target={triple}")
.arg("--features=acpi,dns,fsgsbase,pci,shell,smp,vga")
.arg("--features=acpi,dns,fsgsbase,pci,smp,vga")
.run()?;
cmd!(sh, "cargo clippy --target={triple}")
.arg("--no-default-features")
Expand All @@ -29,19 +29,27 @@ impl Clippy {
.run()?;
cmd!(sh, "cargo clippy --target={triple}")
.arg("--no-default-features")
.arg("--features=acpi,fsgsbase,pci,shell,smp,vga")
.arg("--features=acpi,fsgsbase,pci,smp,vga")
.run()?;

if *arch == Arch::Riscv64 {
cmd!(sh, "cargo clippy --target={triple}")
.arg("--no-default-features")
.arg("--features=gem-net,tcp")
.run()?;
match *arch {
Arch::X86_64 => {
cmd!(sh, "cargo clippy --target={triple}")
.arg("--features=shell")
.run()?;
}
Arch::Aarch64 => {}
Arch::Riscv64 => {
cmd!(sh, "cargo clippy --target={triple}")
.arg("--no-default-features")
.arg("--features=gem-net,tcp")
.run()?;
}
}

cmd!(sh, "cargo clippy --target={triple}")
.arg("--no-default-features")
.arg("--features=acpi,fsgsbase,newlib,shell,smp,vga")
.arg("--features=acpi,fsgsbase,newlib,smp,vga")
.run()?;
}

Expand Down

0 comments on commit c86d541

Please sign in to comment.