Skip to content

Commit 998887e

Browse files
endeneerandreeaflorescu
authored andcommitted
.cargo: config: Enable riscv64 cross-compilation
Add linker for `--target=riscv64gc-unknown-linux-gnu`. Signed-off-by: Tan En De <ende.tan@starfivetech.com>
1 parent 22559d2 commit 998887e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.cargo/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
[target.aarch64-unknown-linux-musl]
22
rustflags = [ "-C", "target-feature=+crt-static", "-C", "link-arg=-lgcc" ]
33

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

0 commit comments

Comments
 (0)