Skip to content

Commit 78ccb94

Browse files
authored
Merge pull request #347 from hsivonen/replacelongerfirst
Search for longer target component first when replacing
2 parents 341d518 + 2805415 commit 78ccb94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1649,10 +1649,10 @@ impl Build {
16491649
}
16501650
} else if target.contains("android") {
16511651
let target = target
1652-
.replace("armv7", "arm")
16531652
.replace("armv7neon", "arm")
1654-
.replace("thumbv7", "arm")
1655-
.replace("thumbv7neon", "arm");
1653+
.replace("armv7", "arm")
1654+
.replace("thumbv7neon", "arm")
1655+
.replace("thumbv7", "arm");
16561656
let gnu_compiler = format!("{}-{}", target, gnu);
16571657
let clang_compiler = format!("{}-{}", target, clang);
16581658
// Check if gnu compiler is present

0 commit comments

Comments
 (0)