mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
60 lines
1.3 KiB
Diff
60 lines
1.3 KiB
Diff
From 3130c331c5694c9c330744c928014fd775806e35 Mon Sep 17 00:00:00 2001
|
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
Date: Sun, 23 Oct 2016 10:57:25 -0600
|
|
Subject: [PATCH 2/2] ARM toolchain fixes
|
|
|
|
---
|
|
build/toolchain/linux/BUILD.gn | 28 +++++++++++++++++++++-------
|
|
1 file changed, 21 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/build/toolchain/linux/BUILD.gn b/build/toolchain/linux/BUILD.gn
|
|
index 548722d39380..39c5b08bbe55 100644
|
|
--- a/build/toolchain/linux/BUILD.gn
|
|
+++ b/build/toolchain/linux/BUILD.gn
|
|
@@ -22,15 +22,13 @@ clang_toolchain("clang_arm64") {
|
|
}
|
|
|
|
gcc_toolchain("arm") {
|
|
- toolprefix = "arm-linux-gnueabihf-"
|
|
-
|
|
- cc = "${toolprefix}gcc"
|
|
- cxx = "${toolprefix}g++"
|
|
+ cc = "gcc"
|
|
+ cxx = "g++"
|
|
|
|
- ar = "${toolprefix}ar"
|
|
+ ar = "ar"
|
|
ld = cxx
|
|
- readelf = "${toolprefix}readelf"
|
|
- nm = "${toolprefix}nm"
|
|
+ readelf = "readelf"
|
|
+ nm = "nm"
|
|
|
|
toolchain_args = {
|
|
current_cpu = "arm"
|
|
@@ -39,6 +37,22 @@ gcc_toolchain("arm") {
|
|
}
|
|
}
|
|
|
|
+gcc_toolchain("arm64") {
|
|
+ cc = "gcc"
|
|
+ cxx = "g++"
|
|
+
|
|
+ ar = "ar"
|
|
+ ld = cxx
|
|
+ readelf = "readelf"
|
|
+ nm = "nm"
|
|
+
|
|
+ toolchain_args = {
|
|
+ current_cpu = "arm64"
|
|
+ current_os = "linux"
|
|
+ is_clang = false
|
|
+ }
|
|
+}
|
|
+
|
|
clang_toolchain("clang_x86") {
|
|
toolchain_args = {
|
|
current_cpu = "x86"
|
|
--
|
|
2.11.0
|
|
|