Skip to content

Support build on LoongArch64 architecture#27108

Open
stdmnpkg wants to merge 1 commit into
PowerShell:masterfrom
stdmnpkg:loongarch
Open

Support build on LoongArch64 architecture#27108
stdmnpkg wants to merge 1 commit into
PowerShell:masterfrom
stdmnpkg:loongarch

Conversation

@stdmnpkg

@stdmnpkg stdmnpkg commented Mar 27, 2026

Copy link
Copy Markdown

PR Summary

LoongArch is a modern RISC CPU ISA developed by Loongson Technology. PowerShell can running on it with minimal modification, this PR add that minimal modification.

PR Context

See also: AOSC-Dev/aosc-os-abbs#15355

图片

PR Checklist

@daxian-dbw daxian-dbw added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Mar 30, 2026
@daxian-dbw

Copy link
Copy Markdown
Member

I'd love to see PowerShell runs on LoongArch, but is this architecture supported by .NET? I cannot find loongarch64 in the supported-os doc.

If it's not officially supported by .NET, I'm afraid we won't be able to accept this change, as there is no way for us to maintain it in future.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Apr 3, 2026
@MingcongBai

MingcongBai commented Apr 4, 2026

Copy link
Copy Markdown

I'd love to see PowerShell runs on LoongArch, but is this architecture supported by .NET? I cannot find loongarch64 in the supported-os doc.

If it's not officially supported by .NET, I'm afraid we won't be able to accept this change, as there is no way for us to maintain it in future.

LoongArch is currently classified as a "community-supported architecture" .NET.

https://loongfans.cn/en/sdk#dotnet

The issue though is indeed with Nupkg repository, but it is possible, as outlined in the link above.

Loongson Hobbyists' Community Portal

@stdmnpkg stdmnpkg marked this pull request as ready for review April 8, 2026 14:46
@stdmnpkg stdmnpkg requested review from a team and jshigetomi as code owners April 8, 2026 14:46
@microsoft-github-policy-service microsoft-github-policy-service Bot removed the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Apr 8, 2026
@microsoft-github-policy-service microsoft-github-policy-service Bot added the Review - Needed The PR is being reviewed label Apr 15, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

Copilot AI review requested due to automatic review settings June 5, 2026 16:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds LoongArch64 Linux runtime identifiers to the build/options runtime allowlists and extends native dependency cleanup logic to recognize LoongArch64 when determining DIA symbol filenames.

Changes:

  • Add linux-loongarch64 and linux-musl-loongarch64 to runtime selection in Start-PSBuild.
  • Add the same runtimes to New-PSOptions runtime validation/allowed values.
  • Update Clear-NativeDependencies to map *-loongarch64 runtimes to the correct diasym filename suffix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log Review - Needed The PR is being reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants