Skip to content

Commit

Permalink
tests: Tweak build script
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jul 29, 2023
1 parent 0d96be0 commit 76b86c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/no-std-qemu/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ fn main() {
let mut subarch = target.strip_prefix(target_arch).unwrap();
subarch = subarch.split('-').next().unwrap();
if subarch.contains('f') || subarch.contains('d') || subarch.contains('g') {
println!("cargo:rustc-cfg=f")
}
if subarch.contains('d') || subarch.contains('g') {
println!("cargo:rustc-cfg=d")
println!("cargo:rustc-cfg=f");
if subarch.contains('d') || subarch.contains('g') {
println!("cargo:rustc-cfg=d");
}
}
}

Expand Down

0 comments on commit 76b86c7

Please sign in to comment.