Blame qtwebengine-opensource-src-5.9.0-gn-aarch64.patch

Kevin Kofler 9dda04
From 801c957651fba94b5d7dde9cc490378a4dc3a987 Mon Sep 17 00:00:00 2001
Kevin Kofler 9dda04
From: Allan Sandfeld Jensen <allan.jensen@qt.io>
Kevin Kofler 9dda04
Date: Thu, 1 Jun 2017 11:40:02 +0200
Kevin Kofler 9dda04
Subject: [PATCH] [Backport] GN: Add Arm64 Linux support
Kevin Kofler 9dda04
Kevin Kofler 9dda04
Add Arm64 linux support be able to build GN binary for
Kevin Kofler 9dda04
native arm64 builds.
Kevin Kofler 9dda04
Kevin Kofler 9dda04
R=dpranke@chromium.org, brettw@chromium.org
Kevin Kofler 9dda04
Kevin Kofler 9dda04
Review-Url: https://codereview.chromium.org/2550673002
Kevin Kofler 9dda04
Kevin Kofler 9dda04
Task-number: QTBUG-61128
Kevin Kofler 9dda04
Change-Id: I3aa6b6ca7df374428a7f4a8b4db9f488a8926f6c
Kevin Kofler 9dda04
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Kevin Kofler 9dda04
---
Kevin Kofler 9dda04
 chromium/tools/gn/args.cc | 3 +++
Kevin Kofler 9dda04
 1 file changed, 3 insertions(+)
Kevin Kofler 9dda04
Kevin Kofler 9dda04
diff --git a/src/3rdparty/chromium/tools/gn/args.cc b/src/3rdparty/chromium/tools/gn/args.cc
Kevin Kofler 9dda04
index 7285d7a..54703e1 100644
Kevin Kofler 9dda04
--- a/src/3rdparty/chromium/tools/gn/args.cc
Kevin Kofler 9dda04
+++ b/src/3rdparty/chromium/tools/gn/args.cc
Kevin Kofler 9dda04
@@ -266,6 +266,7 @@ void Args::SetSystemVarsLocked(Scope* dest) const {
Kevin Kofler 9dda04
   static const char kX86[] = "x86";
Kevin Kofler 9dda04
   static const char kX64[] = "x64";
Kevin Kofler 9dda04
   static const char kArm[] = "arm";
Kevin Kofler 9dda04
+  static const char kArm64[] = "arm64";
Kevin Kofler 9dda04
   static const char kMips[] = "mipsel";
Kevin Kofler 9dda04
   static const char kS390X[] = "s390x";
Kevin Kofler 9dda04
   static const char kPPC64[] = "ppc64";
Kevin Kofler 9dda04
@@ -280,6 +281,8 @@ void Args::SetSystemVarsLocked(Scope* dest) const {
Kevin Kofler 9dda04
     arch = kX64;
Kevin Kofler 9dda04
   else if (os_arch.substr(0, 3) == "arm")
Kevin Kofler 9dda04
     arch = kArm;
Kevin Kofler 9dda04
+  else if (os_arch == "aarch64")
Kevin Kofler 9dda04
+    arch = kArm64;
Kevin Kofler 9dda04
   else if (os_arch == "mips")
Kevin Kofler 9dda04
     arch = kMips;
Kevin Kofler 9dda04
   else if (os_arch == "s390x")
Kevin Kofler 9dda04
-- 
Kevin Kofler 9dda04
2.7.4
Kevin Kofler 9dda04