Add support for Linux RISC-V 64 (#1159)

This commit is contained in:
Glavo
2025-07-27 22:07:07 +08:00
committed by GitHub
parent 7dc5988620
commit e70eed74e2
3 changed files with 12 additions and 1 deletions

View File

@@ -19,6 +19,10 @@ SYSROOT = "/usr/local/ohos-sdk/linux/native/sysroot"
linker = "aarch64-unknown-linux-musl-gcc"
rustflags = ["-C", "target-feature=+crt-static"]
[target.riscv64gc-unknown-linux-musl]
linker = "riscv64-unknown-linux-musl-gcc"
rustflags = ["-C", "target-feature=+crt-static"]
[target.'cfg(all(windows, target_env = "msvc"))']
rustflags = ["-C", "target-feature=+crt-static"]