Skip to content

Commit

Permalink
.cargo: config: Enable riscv64 cross-compilation
Browse files Browse the repository at this point in the history
Add linker for `--target=riscv64gc-unknown-linux-gnu`.

Signed-off-by: Tan En De <[email protected]>
  • Loading branch information
endeneer authored and andreeaflorescu committed Oct 11, 2023
1 parent 22559d2 commit 998887e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[target.aarch64-unknown-linux-musl]
rustflags = [ "-C", "target-feature=+crt-static", "-C", "link-arg=-lgcc" ]

[target.riscv64gc-unknown-linux-gnu]
linker = "riscv64-unknown-linux-gnu-gcc"

0 comments on commit 998887e

Please sign in to comment.