- Backport upstream patch to fix native builds on ARM and aarch64 (QTBUG-61128) - Drop "Backport patch to fix FTBFS with GCC on aarch64 from upstream Chromium" - Drop "Delete all "toolprefix = " lines from build/toolchain/linux/BUILD.gn"epel9
parent
a9a9bd00cc
commit
2e9fc1cac1
@ -1,30 +0,0 @@
|
||||
Index: src/3rdparty/chromium/build/toolchain/linux/BUILD.gn
|
||||
diff --git a/src/3rdparty/chromium/build/toolchain/linux/BUILD.gn b/src/3rdparty/chromium/build/toolchain/linux/BUILD.gn
|
||||
index 548722d3938017ac936b9088b7a686c2afbbb5fe..86cd7dabc6e86d22a266817dfbb3bf0c719f7992 100644
|
||||
--- a/src/3rdparty/chromium/build/toolchain/linux/BUILD.gn
|
||||
+++ b/src/3rdparty/chromium/build/toolchain/linux/BUILD.gn
|
||||
@@ -21,6 +21,24 @@ clang_toolchain("clang_arm64") {
|
||||
}
|
||||
}
|
||||
|
||||
+gcc_toolchain("arm64") {
|
||||
+ toolprefix = "aarch64-linux-gnu-"
|
||||
+
|
||||
+ cc = "${toolprefix}gcc"
|
||||
+ cxx = "${toolprefix}g++"
|
||||
+
|
||||
+ ar = "${toolprefix}ar"
|
||||
+ ld = cxx
|
||||
+ readelf = "${toolprefix}readelf"
|
||||
+ nm = "${toolprefix}nm"
|
||||
+
|
||||
+ toolchain_args = {
|
||||
+ current_cpu = "arm64"
|
||||
+ current_os = "linux"
|
||||
+ is_clang = false
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
gcc_toolchain("arm") {
|
||||
toolprefix = "arm-linux-gnueabihf-"
|
||||
|
@ -0,0 +1,32 @@
|
||||
From 33b69c4d138a8eebc392737ee1a58d999f922d59 Mon Sep 17 00:00:00 2001
|
||||
From: Allan Sandfeld Jensen <allan.jensen@qt.io>
|
||||
Date: Mon, 12 Jun 2017 12:36:17 +0200
|
||||
Subject: [PATCH] Always set a host toolchain
|
||||
|
||||
If we don't give Chromium a host toolchain it will pick one of its own
|
||||
overriding which compiler should be used, and breaking native builds
|
||||
on non-x86 architectuers.
|
||||
|
||||
Task-number: QTBUG-61128
|
||||
Change-Id: Ia25a4f43a28214003abcb11dc75a0e57064f76a7
|
||||
---
|
||||
src/core/config/linux.pri | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/core/config/linux.pri b/src/core/config/linux.pri
|
||||
index 24951cd..076d8a3 100644
|
||||
--- a/src/core/config/linux.pri
|
||||
+++ b/src/core/config/linux.pri
|
||||
@@ -103,8 +103,8 @@ host_build {
|
||||
gn_args += use_system_libffi=false
|
||||
} else {
|
||||
gn_args += custom_toolchain=\"$$QTWEBENGINE_OUT_ROOT/src/toolchain:target\"
|
||||
+ gn_args += host_toolchain=\"$$QTWEBENGINE_OUT_ROOT/src/toolchain:host\"
|
||||
cross_compile {
|
||||
- gn_args += host_toolchain=\"$$QTWEBENGINE_OUT_ROOT/src/toolchain:host\"
|
||||
gn_args += v8_snapshot_toolchain=\"$$QTWEBENGINE_OUT_ROOT/src/toolchain:v8_snapshot\"
|
||||
GN_HOST_CPU = $$gnArch($$QMAKE_HOST.arch)
|
||||
GN_TARGET_CPU = $$gnArch($$QT_ARCH)
|
||||
--
|
||||
2.7.4
|
||||
|
Loading…
Reference in new issue