mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-02 19:15:59 +00:00
21 lines
586 B
Diff
21 lines
586 B
Diff
--- a/build.rs
|
|
+++ b/build.rs
|
|
@@ -259,11 +259,17 @@
|
|
"x64"
|
|
} else if target_arch == "aarch64" {
|
|
"arm64"
|
|
+ } else if target_arch == "arm" {
|
|
+ "arm"
|
|
+ } else if target_triple.starts_with("i686-") {
|
|
+ "x86"
|
|
} else {
|
|
"unknown"
|
|
};
|
|
if target_arch == "x86_64" {
|
|
maybe_install_sysroot("amd64");
|
|
+ } else if target_triple.starts_with("i686-") {
|
|
+ maybe_install_sysroot("i386");
|
|
}
|
|
gn_args.push(format!(r#"v8_target_cpu="{}""#, arch).to_string());
|
|
gn_args.push(format!(r#"target_cpu="{}""#, arch).to_string());
|