!84 [sync] PR-83: Add loongarch64-openEuler-linux to os-triple.
From: @openeuler-sync-bot Reviewed-by: @cf-zhao Signed-off-by: @cf-zhao
This commit is contained in:
commit
d39b2183fa
26
0006-clang-LoongArch-Add-loongarch64-to-os-triple.patch
Normal file
26
0006-clang-LoongArch-Add-loongarch64-to-os-triple.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From 5f03c1fa84487fa7c7c5db1dd461efec67e9c323 Mon Sep 17 00:00:00 2001
|
||||
From: zhanglimin <zhanglimin@loongson.cn>
|
||||
Date: Tue, 12 Mar 2024 17:38:39 +0800
|
||||
Subject: [PATCH] [clang][LoongArch] Add loongarch64 to os-triple
|
||||
|
||||
---
|
||||
clang/lib/Driver/ToolChains/Gnu.cpp | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
|
||||
index 40038dce47d8..e9cba05e8680 100644
|
||||
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
|
||||
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
|
||||
@@ -2341,7 +2341,8 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
|
||||
|
||||
static const char *const LoongArch64LibDirs[] = {"/lib64", "/lib"};
|
||||
static const char *const LoongArch64Triples[] = {
|
||||
- "loongarch64-linux-gnu", "loongarch64-unknown-linux-gnu"};
|
||||
+ "loongarch64-linux-gnu", "loongarch64-unknown-linux-gnu",
|
||||
+ "loongarch64-openEuler-linux"};
|
||||
|
||||
static const char *const M68kLibDirs[] = {"/lib"};
|
||||
static const char *const M68kTriples[] = {
|
||||
--
|
||||
2.20.1
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
|
||||
Name: %{pkg_name}
|
||||
Version: %{clang_version}
|
||||
Release: 7
|
||||
Release: 8
|
||||
Summary: A C language family front-end for LLVM
|
||||
|
||||
License: NCSA
|
||||
@ -50,6 +50,7 @@ Patch2: 0002-Revert-Clang-Change-the-default-DWARF-version-to-5.patch
|
||||
Patch3: 0003-add-BUILD_FOR_OPENEULER-build-option-to-clang.patch
|
||||
Patch4: 0004-add-gcc-compatible-in-BUILD_FOR_OPENEULER.patch
|
||||
Patch5: 0005-backport-Disable-InterpreterExceptionTest-on-RISC-V.patch
|
||||
Patch6: 0006-clang-LoongArch-Add-loongarch64-to-os-triple.patch
|
||||
|
||||
# Patches for clang-tools-extra
|
||||
# See https://reviews.llvm.org/D120301
|
||||
@ -378,6 +379,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C ./_build
|
||||
%{install_bindir}/git-clang-format
|
||||
|
||||
%changelog
|
||||
* Thu Mar 14 2024 zhanglimin <zhanglimin@loongson.cn> -17.0.6-8
|
||||
- Add loongarch64 to os-triple patch
|
||||
|
||||
* Fri Mar 1 2024 laokz <zhangkai@iscas.ac.cn> -17.0.6-7
|
||||
- riscv64: backport 18.1.0 patch to disable unsupported test
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user