File tree 3 files changed +5
-0
lines changed 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ const MIN_ALIGN: usize = 8;
32
32
target_arch = "powerpc64" ,
33
33
target_arch = "powerpc64le" ,
34
34
target_arch = "mips64" ,
35
+ target_arch = "riscv64" ,
35
36
target_arch = "s390x" ,
36
37
target_arch = "sparc64"
37
38
) ) ) ]
Original file line number Diff line number Diff line change @@ -309,6 +309,9 @@ fn main() {
309
309
} else if !target. contains ( "windows" ) {
310
310
println ! ( "cargo:rustc-link-lib=pthread" ) ;
311
311
}
312
+ if target. contains ( "riscv" ) {
313
+ println ! ( "cargo:rustc-link-lib=atomic" ) ;
314
+ }
312
315
println ! ( "cargo:rerun-if-changed=jemalloc" ) ;
313
316
}
314
317
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ const ALIGNOF_MAX_ALIGN_T: usize = 8;
54
54
target_arch = "powerpc64" ,
55
55
target_arch = "powerpc64le" ,
56
56
target_arch = "mips64" ,
57
+ target_arch = "riscv64" ,
57
58
target_arch = "s390x" ,
58
59
target_arch = "sparc64"
59
60
) ) ) ]
You can’t perform that action at this time.
0 commit comments