We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac72fa6 commit 4393051Copy full SHA for 4393051
src/lib.rs
@@ -1719,7 +1719,7 @@ impl Build {
1719
} else if self.get_host()? != target {
1720
// CROSS_COMPILE is of the form: "arm-linux-gnueabi-"
1721
let cc_env = self.getenv("CROSS_COMPILE");
1722
- let cross_compile = cc_env.as_ref().map(|s| s.trim_right_matches('-'));
+ let cross_compile = cc_env.as_ref().map(|s| s.trim_end_matches('-'));
1723
let prefix = cross_compile.or(match &target[..] {
1724
"aarch64-unknown-linux-gnu" => Some("aarch64-linux-gnu"),
1725
"aarch64-unknown-linux-musl" => Some("aarch64-linux-musl"),
0 commit comments