Projects
Eulaceura:Mainline
distributed-build
_service:obs_scm:0003-feat-Adapt-to-Openeuler-a...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0003-feat-Adapt-to-Openeuler-add-clang.patch of Package distributed-build
From 6e60ac76bd9c5502b7ce23cb7c566075f1e22dce Mon Sep 17 00:00:00 2001 From: zxstty <zhaojiaqi18@huawei.com> Date: Thu, 9 Nov 2023 11:10:52 +0800 Subject: [PATCH] 0003 --- toolchain/gcc_toolchain.gni | 7 ++++++- toolchain/linux/BUILD.gn | 30 ++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/toolchain/gcc_toolchain.gni b/toolchain/gcc_toolchain.gni index 271d556..f521d7c 100755 --- a/toolchain/gcc_toolchain.gni +++ b/toolchain/gcc_toolchain.gni @@ -584,7 +584,12 @@ template("clang_toolchain") { } gcc_toolchain(target_name) { - prefix = rebase_path("$clang_base_path/bin", root_build_dir) + if (build_openeuler) { + prefix = "/usr/bin" + toolprefix = "/usr/bin/" + } else { + prefix = rebase_path("$clang_base_path/bin", root_build_dir) + } cc = "$prefix/clang" cxx = "$prefix/clang++" ld = cxx diff --git a/toolchain/linux/BUILD.gn b/toolchain/linux/BUILD.gn index 6b2d618..59449f6 100755 --- a/toolchain/linux/BUILD.gn +++ b/toolchain/linux/BUILD.gn @@ -116,3 +116,33 @@ gcc_toolchain("x64") { is_clang = false } } + +clang_toolchain("linux_clang_x86_64") { + # Output linker map files for binary size analysis. + enable_linker_map = true + + strip = "/usr/bin/llvm-strip" + toolchain_args = { + current_cpu = "x64" + current_os = "linux" + } + shlib_extension = ".so" +} +clang_toolchain("clang_x86_64") { + # Output linker map files for binary size analysis. + enable_linker_map = true + + strip = "/usr/bin/llvm-strip" + toolchain_args = { + current_cpu = "x64" + current_os = "linux" + } + shlib_extension = ".so" +} + +clang_toolchain("linux_clang_arm64") { + toolchain_args = { + current_cpu = "arm64" + current_os = "linux" + } +} -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2