qt5-qtwebengine/qtwebengine-opensource-src-5.9.0-host-toolchain.patch
Kevin Kofler 2e9fc1cac1 Use upstream (Qt) fix for the ARM native build issue
- 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"
2017-06-12 13:52:37 +02:00

33 lines
1.2 KiB
Diff

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