1 Star 0 Fork 12

s_c_c/distributed-build

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0024-feat-for-embedded-add-linux_arm64-toolchain.patch 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
s_c_c 提交于 2024-03-13 16:17 +08:00 . Fix sysroot path and add toolchain for embedded
From ff44eba6593a3e8a3c0c7bcaf7ab913ba2b8e76f Mon Sep 17 00:00:00 2001
From: s_c_c <shichuchao@huawei.com>
Date: Tue, 12 Mar 2024 15:04:10 +0800
Subject: [PATCH] feat for embedded add linux_arm64 toolchain
---
toolchain/linux/BUILD.gn | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/toolchain/linux/BUILD.gn b/toolchain/linux/BUILD.gn
index a8c2f78..9019e67 100644
--- a/toolchain/linux/BUILD.gn
+++ b/toolchain/linux/BUILD.gn
@@ -147,3 +147,23 @@ clang_toolchain("linux_clang_arm64") {
}
shlib_extension = ".z.so"
}
+
+gcc_toolchain("linux_arm64") {
+ tool_path = rebase_path("//toolchain/bin", root_build_dir)
+ toolprefix = "${tool_path}/aarch64-openeuler-linux-gnu-"
+
+ cc = "${toolprefix}gcc"
+ cxx = "${toolprefix}g++"
+
+ ar = "${toolprefix}ar"
+ ld = cxx
+ readelf = "${toolprefix}readelf"
+ nm = "${toolprefix}nm"
+
+ toolchain_args = {
+ current_cpu = "arm64"
+ current_os = "linux"
+ is_clang = false
+ }
+ shlib_extension = ".z.so"
+}
\ No newline at end of file
--
2.20.1 (Apple Git-117)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/s-c-c/distributed-build.git
git@gitee.com:s-c-c/distributed-build.git
s-c-c
distributed-build
distributed-build
master

搜索帮助