Skip to content

Commit

Permalink
Add gbs support for riscv64 build.
Browse files Browse the repository at this point in the history
  • Loading branch information
viewizard authored and gbalykov committed Dec 11, 2023
1 parent f411402 commit 004b01f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ obj/
/.dotnet/
/.coreclr/

# cross-build related files
/.tools/

# GDB-related
.gdb_history

Expand Down
13 changes: 10 additions & 3 deletions packaging/netcoredbg.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ BuildRequires: clang-accel-armv7l-cross-arm
%ifarch aarch64
BuildRequires: clang-accel-aarch64-cross-aarch64
%endif
%ifarch riscv64
BuildRequires: clang-accel-riscv64-cross-riscv64
%endif

BuildRequires: cmake
BuildRequires: clang >= 3.8
BuildRequires: clang-devel >= 3.8
BuildRequires: llvm >= 3.8
BuildRequires: llvm-devel >= 3.8
BuildRequires: lldb >= 3.8
BuildRequires: lldb-devel >= 3.8
BuildRequires: libstdc++-devel
BuildRequires: coreclr-devel
BuildRequires: dotnet-build-tools
Expand Down Expand Up @@ -68,6 +69,10 @@ Requires: coreclr
%define ARCH ARM64
%endif

%ifarch riscv64
%define ARCH RISCV64
%endif

%description
This is a CoreCLR debugger for Tizen.

Expand Down Expand Up @@ -125,8 +130,10 @@ cmake .. \
-DCLR_CMAKE_LINUX_ID=tizen \
-DDBGSHIM_DIR=$NETCOREAPPDIR \
-DBUILD_MANAGED=OFF \
%ifnarch riscv64
-DNCDB_DOTNET_STARTUP_HOOK=$STARTUP_HOOK \
-DINTEROP_DEBUGGING=1 \
%endif
-DBUILD_TESTING=%{build_testing} \
-DCLR_CMAKE_ENABLE_CODE_COVERAGE=%{coverage}

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

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

Expand Down

0 comments on commit 004b01f

Please sign in to comment.