Skip to content

Commit

Permalink
Tidy per-feature cfg checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jsgf committed May 7, 2024
1 parent 8e148af commit 81a1015
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions riscv-rt/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,9 @@ fn main() {
println!("cargo:rustc-check-cfg=cfg(riscv)");
println!("cargo:rustc-check-cfg=cfg(riscv32)");
println!("cargo:rustc-check-cfg=cfg(riscv64)");
println!("cargo:rustc-check-cfg=cfg(riscvi)");
println!("cargo:rustc-check-cfg=cfg(riscvm)");
println!("cargo:rustc-check-cfg=cfg(riscva)");
println!("cargo:rustc-check-cfg=cfg(riscvf)");
println!("cargo:rustc-check-cfg=cfg(riscvd)");
println!("cargo:rustc-check-cfg=cfg(riscvc)");
for ext in ['i', 'e', 'm', 'a', 'f', 'd', 'g', 'c'] {
println!("cargo:rustc-check-cfg=cfg(riscv{})", ext);
}

let target = env::var("TARGET").unwrap();
let cargo_flags = env::var("CARGO_ENCODED_RUSTFLAGS").unwrap();
Expand Down

0 comments on commit 81a1015

Please sign in to comment.