mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-26 13:40:22 +00:00
12 lines
487 B
Diff
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)
|
|
}
|