0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-09-21 15:09:35 +00:00
Files
termux-packages/packages/librusty-v8/0002-build-triple.patch
2024-11-28 21:05:03 +08:00

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());