Add riscv64 to os-triple patch

Signed-off-by: laokz <zhangkai@iscas.ac.cn>
This commit is contained in:
laokz 2024-02-18 15:00:27 +08:00 committed by laokz
parent c9ad4a53b0
commit e9ba1439dd
2 changed files with 17 additions and 5 deletions

View File

@ -1,11 +1,11 @@
From a833e7fa829764f8e3bf6b059c9e91080ca55253 Mon Sep 17 00:00:00 2001 From a833e7fa829764f8e3bf6b059c9e91080ca55253 Mon Sep 17 00:00:00 2001
From: liyunfei <liyunfei33@huawei.com> From: liyunfei <liyunfei33@huawei.com>
Date: Mon, 24 Jul 2023 19:16:45 +0800 Date: Mon, 24 Jul 2023 19:16:45 +0800
Subject: [PATCH] Add triples for X86_64/AArch64 openEuler gcc Subject: [PATCH] Add triples for X86_64/AArch64/Riscv64 openEuler gcc
--- ---
clang/lib/Driver/ToolChains/Gnu.cpp | 4 ++-- clang/lib/Driver/ToolChains/Gnu.cpp | 6 ++--
1 file changed, 2 insertions(+), 2 deletions(-) 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index 665cdc3132fb..fc56935e7513 100644 index 665cdc3132fb..fc56935e7513 100644
@ -29,5 +29,14 @@ index 665cdc3132fb..fc56935e7513 100644
static const char *const X32Triples[] = {"x86_64-linux-gnux32", static const char *const X32Triples[] = {"x86_64-linux-gnux32",
"x86_64-pc-linux-gnux32"}; "x86_64-pc-linux-gnux32"};
static const char *const X32LibDirs[] = {"/libx32", "/lib"}; static const char *const X32LibDirs[] = {"/libx32", "/lib"};
@@ -2404,7 +2404,7 @@
static const char *const RISCV64LibDirs[] = {"/lib64", "/lib"};
static const char *const RISCV64Triples[] = {"riscv64-unknown-linux-gnu",
"riscv64-linux-gnu",
- "riscv64-unknown-elf"};
+ "riscv64-unknown-elf", "riscv64-openEuler-linux"};
static const char *const SPARCv8LibDirs[] = {"/lib32", "/lib"};
static const char *const SPARCv8Triples[] = {"sparc-linux-gnu",
-- --
2.28.0.windows.1 2.28.0.windows.1

View File

@ -36,7 +36,7 @@
Name: %{pkg_name} Name: %{pkg_name}
Version: %{clang_version} Version: %{clang_version}
Release: 3 Release: 4
Summary: A C language family front-end for LLVM Summary: A C language family front-end for LLVM
License: NCSA License: NCSA
@ -45,7 +45,7 @@ Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}/%{clang_tools_srcdir}.tar.xz Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}/%{clang_tools_srcdir}.tar.xz
Patch0: fedora-PATCH-clang-Don-t-install-static-libraries.patch Patch0: fedora-PATCH-clang-Don-t-install-static-libraries.patch
Patch1: 0001-Add-triples-for-X86_64-AArch64-openEuler-gcc.patch Patch1: 0001-Add-triples-for-X86_64-AArch64-Riscv64-openEuler-gcc.patch
# Patches for clang-tools-extra # Patches for clang-tools-extra
# See https://reviews.llvm.org/D120301 # See https://reviews.llvm.org/D120301
@ -373,6 +373,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C ./_build
%{install_bindir}/git-clang-format %{install_bindir}/git-clang-format
%changelog %changelog
* Sun Feb 18 2024 laokz <zhangkai@iscas.ac.cn> -17.0.6-4
- Add riscv64 to os-triple patch
* Thu Jan 25 2024 liyunfei <liyufnei33@huawei.com> -17.0.6-3 * Thu Jan 25 2024 liyunfei <liyufnei33@huawei.com> -17.0.6-3
- Add Buildrequires: llvm-libs - Add Buildrequires: llvm-libs