Add support for riscv64

(cherry picked from commit 7578807b164cc0f9b18782b9b5e6616e4fb2074e)
This commit is contained in:
lrzlin 2024-08-01 19:26:17 +08:00 committed by openeuler-sync-bot
parent 3da1770b88
commit ae06b6f3ef
2 changed files with 5979 additions and 1 deletions

View File

@ -4,12 +4,13 @@
Name: delve
Version: 1.22.0
Release: 2
Release: 3
Summary: A debugger for the Go programming language
License: MIT
URL: https://github.com/go-delve/delve
Source0: https://github.com/go-delve/delve/archive/v%{version}/%{name}-%{version}.tar.gz
Patch1: support-for-loongarch.patch
Patch2: support-for-riscv.patch
BuildRequires: gcc glibc
BuildRequires: golang >= 1.16
@ -26,6 +27,9 @@ delve is a debugger for the Go programming language
%ifarch loongarch64
%patch1 -p1
%endif
%ifarch riscv64
%patch -P2 -p1
%endif
%build
%gobuild -o _bin/dlv %{goipath}/cmd/dlv
@ -46,6 +50,9 @@ rm -rf %{buildroot}
%doc Documentation/*
%changelog
* Thu Aug 01 2024 Lin Runze <lrzlin@163.com> - 1.22.0-3
- add riscv64 support
* Sat Jun 8 2024 zhangxianjun <zhangxianjun@kylinos.cn> - 1.22.0-2
- add loongarch64 support

5971
support-for-riscv.patch Normal file

File diff suppressed because it is too large Load Diff