Skip to content

Commit 9647fac

Browse files
committed
Add riscv64 support
1 parent 2d242ee commit 9647fac

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

benches/roundtrip.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const MIN_ALIGN: usize = 8;
3232
target_arch = "powerpc64",
3333
target_arch = "powerpc64le",
3434
target_arch = "mips64",
35+
target_arch = "riscv64",
3536
target_arch = "s390x",
3637
target_arch = "sparc64"
3738
)))]

jemalloc-sys/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ fn main() {
309309
} else if !target.contains("windows") {
310310
println!("cargo:rustc-link-lib=pthread");
311311
}
312+
if target.contains("riscv") {
313+
println!("cargo:rustc-link-lib=atomic");
314+
}
312315
println!("cargo:rerun-if-changed=jemalloc");
313316
}
314317

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const ALIGNOF_MAX_ALIGN_T: usize = 8;
5454
target_arch = "powerpc64",
5555
target_arch = "powerpc64le",
5656
target_arch = "mips64",
57+
target_arch = "riscv64",
5758
target_arch = "s390x",
5859
target_arch = "sparc64"
5960
)))]

0 commit comments

Comments
 (0)