Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LoongArch64-mono] Part-5:Add loongarch support in some files for LoongArch64 #103398

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

lawn123
Copy link
Contributor

@lawn123 lawn123 commented Jun 13, 2024

Add a new archecture LoongArch64 for mono.This PR is about loongarch support in some files.

…ngArch64

Change-Id: I52c8c227fdeeee840cad14496e24e93a04521143
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jun 13, 2024
@lawn123
Copy link
Contributor Author

lawn123 commented Jun 13, 2024

@shushanhf

@@ -392,6 +392,8 @@ elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "i686" OR CMAKE_SYSTEM_PROCESSOR STREQUAL
set(CMAKE_SYSTEM_PROCESSOR "x86")
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "ARM64")
set(CMAKE_SYSTEM_PROCESSOR "arm64")
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "loongarch64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "LOONGARCH64")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add

runtime/src/mono/mono.proj

Lines 457 to 461 in 4f9cd4d

<!-- riscv64 Linux cross build options -->
<ItemGroup Condition="'$(MonoCrossDir)' != '' and '$(TargetArchitecture)' == 'riscv64'">
<_MonoCMakeArgs Include="-DCMAKE_TOOLCHAIN_FILE=$(CrossToolchainFile)" />
<_MonoBuildEnv Include="TARGET_BUILD_ARCH=riscv64" />
</ItemGroup>
to enable LA64 mono cross-build.

lawn123 and others added 5 commits June 13, 2024 16:59
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
Change-Id: I516967ba6b5a9a973bd6a8b8f1b719ac239ce2db
@am11 am11 requested a review from akoeplinger June 13, 2024 09:18
@lawn123
Copy link
Contributor Author

lawn123 commented Jun 13, 2024

@am11 Thank you very much. I have added the code you suggested to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-loongarch64 area-Build-mono community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants