Files
termux-packages/x11-packages/electron-host-tools-for-code-oss/cr-patches/0001-compiler-use-android-target.patch
2025-12-14 12:47:47 +00:00

43 lines
1.8 KiB
Diff

--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1278,7 +1278,7 @@
# CPU architecture. We may or may not be doing a cross compile now, so for
# simplicity we always explicitly set the architecture.
if (current_cpu == "x64") {
- if (is_clang && !is_android && !is_fuchsia && !is_chromeos_device) {
+ if (is_clang && !is_android && !is_fuchsia && !is_chromeos_device && false) {
cflags += [ "--target=x86_64-unknown-linux-gnu" ]
ldflags += [ "--target=x86_64-unknown-linux-gnu" ]
} else {
@@ -1287,7 +1287,7 @@
}
cflags += [ "-msse3" ]
} else if (current_cpu == "x86") {
- if (is_clang && !is_android && !is_chromeos_device) {
+ if (is_clang && !is_android && !is_chromeos_device && false) {
cflags += [ "--target=i386-unknown-linux-gnu" ]
ldflags += [ "--target=i386-unknown-linux-gnu" ]
} else {
@@ -1300,8 +1300,8 @@
]
} else if (current_cpu == "arm") {
if (is_clang && !is_android && !is_chromeos_device) {
- cflags += [ "--target=arm-linux-gnueabihf" ]
- ldflags += [ "--target=arm-linux-gnueabihf" ]
+ cflags += [ "--target=armv7a-linux-androideabi24" ]
+ ldflags += [ "--target=armv7a-linux-androideabi24" ]
}
cflags += [
"-march=$arm_arch",
@@ -1312,8 +1312,8 @@
}
} else if (current_cpu == "arm64") {
if (is_clang && !is_android && !is_fuchsia && !is_chromeos_device) {
- cflags += [ "--target=aarch64-linux-gnu" ]
- ldflags += [ "--target=aarch64-linux-gnu" ]
+ cflags += [ "--target=aarch64-linux-android24" ]
+ ldflags += [ "--target=aarch64-linux-android24" ]
}
} else if (current_cpu == "mipsel") {
ldflags += [ "-Wl,--hash-style=sysv" ]