PKGBUILDs/extra/chromium/0001-Add-aarch64-GN-support.patch

34 lines
1 KiB
Diff
Raw Normal View History

2017-01-27 00:46:15 +00:00
From 24b54472072cd87964cd3ab210516daeb16705a5 Mon Sep 17 00:00:00 2001
2016-10-23 21:55:00 +00:00
From: Kevin Mihelich <kevin@archlinuxarm.org>
Date: Sun, 23 Oct 2016 10:56:44 -0600
2016-12-04 01:36:05 +00:00
Subject: [PATCH 1/2] Add aarch64 GN support
2016-10-23 21:55:00 +00:00
---
tools/gn/args.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/gn/args.cc b/tools/gn/args.cc
2017-01-27 00:46:15 +00:00
index 7285d7a5388a..54703e17604e 100644
2016-10-23 21:55:00 +00:00
--- a/tools/gn/args.cc
+++ b/tools/gn/args.cc
2017-01-27 00:46:15 +00:00
@@ -266,6 +266,7 @@ void Args::SetSystemVarsLocked(Scope* dest) const {
2016-10-23 21:55:00 +00:00
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";
2017-01-27 00:46:15 +00:00
static const char kS390X[] = "s390x";
static const char kPPC64[] = "ppc64";
2016-10-23 21:55:00 +00:00
@@ -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;
2017-01-27 00:46:15 +00:00
else if (os_arch == "s390x")
2016-10-23 21:55:00 +00:00
--
2017-01-27 00:46:15 +00:00
2.11.0
2016-10-23 21:55:00 +00:00