Skip to content

Commit 25629bc

Browse files
Enable RVV compiling
1 parent a10618a commit 25629bc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.cargo/config.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Uncomment if you want `cargo build --release` to build both by default
44
# target = ["x86_64-unknown-linux-musl", "aarch64-unknown-linux-musl"]
55

6-
[target.'cfg(any(target_os = "freebsd", target_os = "android", target_os = "macos"))']
6+
[target.'cfg(any(target_os = "freebsd", target_os = "android", target_os = "macos", target_arch = "riscv64"))']
77
rustflags = [
88
"-C","target-cpu=native",
99
]
@@ -31,3 +31,4 @@ rustflags = [
3131
# Explicit sections kept minimal; the musl cfg above handles both triples.
3232
[target.x86_64-unknown-linux-musl]
3333
[target.aarch64-unknown-linux-musl]
34+
[target.riscv64gc-unknown-linux-musl]

0 commit comments

Comments
 (0)