mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
60 lines
1.2 KiB
Diff
60 lines
1.2 KiB
Diff
From 091bb27160baee02c93a3b14c8c078e6c3f5bdba 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 548722d..39c5b08b 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.10.2
|
|
|