0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-03-02 19:15:59 +00:00
termux-packages/packages/librusty-v8/0002-build-triple.patch
Komo 2212a6c631 enable,bump(main/librusty-v8): 130.0.1 (#22404)
Co-authored-by: Chongyun Lee <45286352+licy183@users.noreply.github.com>
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());