Files
termux-packages/packages/rust/src-bootstrap-cc_detect.rs.diff
termux-pacman-bot 419a8cdd35 rust: Bump to 1.68.0
2023-03-10 07:02:38 +00:00

12 lines
487 B
Diff

--- a/src/bootstrap/cc_detect.rs
+++ b/src/bootstrap/cc_detect.rs
@@ -235,7 +235,7 @@
// API 19 is the earliest API level supported by NDK r25b but AArch64 and x86_64 support
// begins at API level 21.
let api_level =
- if triple.contains("aarch64") || triple.contains("x86_64") { "21" } else { "19" };
+ "@TERMUX_PKG_API_LEVEL@";
let compiler = format!("{}{}-{}", triple_translated, api_level, compiler.clang());
ndk.join("bin").join(compiler)
}