Skip to content

Commit a065660

Browse files
authored
Merge pull request #426 from Amanieu/fix_wasi_build
Fix build on targets with fewer than 3 components in their name
2 parents dab4379 + 2571b1a commit a065660

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ fn main() {
7272
// Only emit the ARM Linux atomic emulation on pre-ARMv6 architectures. This
7373
// includes the old androideabi. It is deprecated but it is available as a
7474
// rustc target (arm-linux-androideabi).
75-
if llvm_target[0] == "armv4t" || llvm_target[0] == "armv5te" || llvm_target[2] == "androideabi"
75+
if llvm_target[0] == "armv4t"
76+
|| llvm_target[0] == "armv5te"
77+
|| llvm_target.get(2) == Some(&"androideabi")
7678
{
7779
println!("cargo:rustc-cfg=kernel_user_helpers")
7880
}

0 commit comments

Comments
 (0)