1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/testing/signal-desktop/webrtc-compiler.patch
2025-05-09 07:13:13 +00:00

94 lines
3.9 KiB
Diff

diff --git a/webrtc/build/config/compiler/BUILD.gn.orig b/webrtc/build/config/compiler/BUILD.gn
index 88109264ea9..192a3f3119e 100644
--- a/webrtc/build/config/compiler/BUILD.gn.orig
+++ b/webrtc/build/config/compiler/BUILD.gn
@@ -607,14 +607,14 @@ config("compiler") {
if (default_toolchain != "//build/toolchain/cros:target" &&
!llvm_android_mainline) {
cflags += [
- "-mllvm",
- "-split-threshold-for-reg-with-hint=0",
+ #"-mllvm",
+ #"-split-threshold-for-reg-with-hint=0",
]
if (use_thin_lto && is_a_target_toolchain) {
if (is_win) {
ldflags += [ "-mllvm:-split-threshold-for-reg-with-hint=0" ]
} else {
- ldflags += [ "-Wl,-mllvm,-split-threshold-for-reg-with-hint=0" ]
+ #ldflags += [ "-Wl,-mllvm,-split-threshold-for-reg-with-hint=0" ]
}
}
}
@@ -825,7 +825,7 @@ config("compiler") {
# We only use one version of LLVM within a build so there's no need to
# upgrade debug info, which can be expensive since it runs the verifier.
- ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
+ #ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
}
if (!optimize_for_size) {
@@ -1241,8 +1241,8 @@ config("compiler_cpu_abi") {
}
} else if (current_cpu == "arm") {
if (is_clang && !is_android && !is_nacl && !is_chromeos_device) {
- cflags += [ "--target=arm-linux-gnueabihf" ]
- ldflags += [ "--target=arm-linux-gnueabihf" ]
+ cflags += [ "--target=arm-alpine-linux-gnueabihf" ]
+ ldflags += [ "--target=arm-alpine-linux-gnueabihf" ]
}
if (!is_nacl) {
cflags += [
@@ -1256,8 +1256,8 @@ config("compiler_cpu_abi") {
} else if (current_cpu == "arm64") {
if (is_clang && !is_android && !is_nacl && !is_fuchsia &&
!is_chromeos_device) {
- cflags += [ "--target=aarch64-linux-gnu" ]
- ldflags += [ "--target=aarch64-linux-gnu" ]
+ cflags += [ "--target=aarch64-alpine-linux-gnu" ]
+ ldflags += [ "--target=aarch64-alpine-linux-gnu" ]
}
} else if (current_cpu == "mipsel" && !is_nacl) {
ldflags += [ "-Wl,--hash-style=sysv" ]
@@ -1267,8 +1267,8 @@ config("compiler_cpu_abi") {
cflags += [ "--target=mipsel-linux-android" ]
ldflags += [ "--target=mipsel-linux-android" ]
} else {
- cflags += [ "--target=mipsel-linux-gnu" ]
- ldflags += [ "--target=mipsel-linux-gnu" ]
+ cflags += [ "--target=mipsel-alpine-linux-gnu" ]
+ ldflags += [ "--target=mipsel-alpine-linux-gnu" ]
}
} else {
cflags += [ "-EL" ]
@@ -1348,8 +1348,8 @@ config("compiler_cpu_abi") {
ldflags += [ "-Wl,--hash-style=sysv" ]
if (custom_toolchain == "") {
if (is_clang) {
- cflags += [ "--target=mips-linux-gnu" ]
- ldflags += [ "--target=mips-linux-gnu" ]
+ cflags += [ "--target=mips-alpine-linux-gnu" ]
+ ldflags += [ "--target=mips-alpine-linux-gnu" ]
} else {
cflags += [ "-EB" ]
ldflags += [ "-EB" ]
@@ -1501,14 +1501,14 @@ config("compiler_cpu_abi") {
}
} else if (current_cpu == "riscv64") {
if (is_clang && !is_android) {
- cflags += [ "--target=riscv64-linux-gnu" ]
- ldflags += [ "--target=riscv64-linux-gnu" ]
+ cflags += [ "--target=riscv64-alpine-linux-gnu" ]
+ ldflags += [ "--target=riscv64-alpine-linux-gnu" ]
}
cflags += [ "-mabi=lp64d" ]
} else if (current_cpu == "loong64") {
if (is_clang) {
- cflags += [ "--target=loongarch64-linux-gnu" ]
- ldflags += [ "--target=loongarch64-linux-gnu" ]
+ cflags += [ "--target=loongarch64-alpine-linux-gnu" ]
+ ldflags += [ "--target=loongarch64-alpine-linux-gnu" ]
}
cflags += [
"-mabi=lp64d",