Skip to content

Add plain cross-compilation mode for riscv64 and loongarch64 #1804

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kxxt
Copy link

@kxxt kxxt commented Mar 24, 2025

This patch introduces a "plain" cross-compilation mode that cross compiles directly using cargo build and target-specific linker(gcc).

It can be used for architectures where cargo-zigbuild is broken(e.g. riscv64 #1793, loongarch64 #1645)

I have done test locally by running dist build -t riscv64gc-unknown-linux-gnu but not sure how to test such unreleased patches in CI context.

Close #1793

This patch introduces a "plain" cross-compilation mode that cross compiles
directly using cargo build and target-specific linker(gcc).

It can be used for architectures where cargo-zigbuild is broken
(e.g. riscv64, loongarch64)
@kxxt kxxt moved this to In review in FOSS TODO List Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to disable zigbuild
1 participant