PKGBUILDs/extra/chromium/0001-Add-aarch64-GN-support.patch
2017-01-27 00:46:15 +00:00

33 lines
1 KiB
Diff

From 24b54472072cd87964cd3ab210516daeb16705a5 Mon Sep 17 00:00:00 2001
From: Kevin Mihelich <kevin@archlinuxarm.org>
Date: Sun, 23 Oct 2016 10:56:44 -0600
Subject: [PATCH 1/2] Add aarch64 GN support
---
tools/gn/args.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/gn/args.cc b/tools/gn/args.cc
index 7285d7a5388a..54703e17604e 100644
--- a/tools/gn/args.cc
+++ b/tools/gn/args.cc
@@ -266,6 +266,7 @@ void Args::SetSystemVarsLocked(Scope* dest) const {
static const char kX86[] = "x86";
static const char kX64[] = "x64";
static const char kArm[] = "arm";
+ static const char kArm64[] = "arm64";
static const char kMips[] = "mipsel";
static const char kS390X[] = "s390x";
static const char kPPC64[] = "ppc64";
@@ -280,6 +281,8 @@ void Args::SetSystemVarsLocked(Scope* dest) const {
arch = kX64;
else if (os_arch.substr(0, 3) == "arm")
arch = kArm;
+ else if (os_arch == "aarch64")
+ arch = kArm64;
else if (os_arch == "mips")
arch = kMips;
else if (os_arch == "s390x")
--
2.11.0