Skip to content

Commit 004b01f

Browse files
viewizardgbalykov
authored andcommittedDec 11, 2023
Add gbs support for riscv64 build.
1 parent f411402 commit 004b01f

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed
 

‎.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ obj/
2828
/.dotnet/
2929
/.coreclr/
3030

31+
# cross-build related files
32+
/.tools/
33+
3134
# GDB-related
3235
.gdb_history
3336

‎packaging/netcoredbg.spec

+10-3
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ BuildRequires: clang-accel-armv7l-cross-arm
1616
%ifarch aarch64
1717
BuildRequires: clang-accel-aarch64-cross-aarch64
1818
%endif
19+
%ifarch riscv64
20+
BuildRequires: clang-accel-riscv64-cross-riscv64
21+
%endif
1922

2023
BuildRequires: cmake
2124
BuildRequires: clang >= 3.8
2225
BuildRequires: clang-devel >= 3.8
2326
BuildRequires: llvm >= 3.8
2427
BuildRequires: llvm-devel >= 3.8
25-
BuildRequires: lldb >= 3.8
26-
BuildRequires: lldb-devel >= 3.8
2728
BuildRequires: libstdc++-devel
2829
BuildRequires: coreclr-devel
2930
BuildRequires: dotnet-build-tools
@@ -68,6 +69,10 @@ Requires: coreclr
6869
%define ARCH ARM64
6970
%endif
7071

72+
%ifarch riscv64
73+
%define ARCH RISCV64
74+
%endif
75+
7176
%description
7277
This is a CoreCLR debugger for Tizen.
7378

@@ -125,8 +130,10 @@ cmake .. \
125130
-DCLR_CMAKE_LINUX_ID=tizen \
126131
-DDBGSHIM_DIR=$NETCOREAPPDIR \
127132
-DBUILD_MANAGED=OFF \
133+
%ifnarch riscv64
128134
-DNCDB_DOTNET_STARTUP_HOOK=$STARTUP_HOOK \
129135
-DINTEROP_DEBUGGING=1 \
136+
%endif
130137
-DBUILD_TESTING=%{build_testing} \
131138
-DCLR_CMAKE_ENABLE_CODE_COVERAGE=%{coverage}
132139

@@ -164,7 +171,7 @@ unzip ../packaging/microsoft.codeanalysis.csharp.scripting.$CSVER.nupkg lib/nets
164171
unzip $SYSCODEPAGES lib/netstandard1.3/System.Text.Encoding.CodePages.dll
165172

166173
find lib/netstandard1.3/ -name '*.dll' -exec chmod 644 {} \;
167-
%ifnarch %{ix86}
174+
%ifnarch %{ix86} riscv64
168175
find lib/netstandard1.3/ -name '*.dll' -exec %{_datarootdir}/%{netcoreappalias}/crossgen -ReadyToRun /Platform_Assemblies_Paths %{_datarootdir}/%{netcoreappalias}:$PWD/lib/netstandard1.3 {} \;
169176
%endif
170177

0 commit comments

Comments
 (0)
Please sign in to comment.