File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,7 @@ fn main() {
59
59
// * wasm - clang for wasm is somewhat hard to come by and it's
60
60
// unlikely that the C is really that much better than our own Rust.
61
61
// * nvptx - everything is bitcode, not compatible with mixed C/Rust
62
- // * riscv - the rust-lang/rust distribution container doesn't have a C
63
- // compiler.
64
- if !target. contains ( "wasm" )
65
- && !target. contains ( "nvptx" )
66
- && ( !target. starts_with ( "riscv" ) || target. contains ( "xous" ) )
67
- {
62
+ if !target. contains ( "wasm" ) && !target. contains ( "nvptx" ) {
68
63
#[ cfg( feature = "c" ) ]
69
64
c:: compile ( & llvm_target, & target) ;
70
65
}
@@ -519,7 +514,7 @@ mod c {
519
514
}
520
515
}
521
516
522
- if target_arch == "mips" {
517
+ if target_arch == "mips" || target_arch == "riscv32" || target_arch == "riscv64" {
523
518
sources. extend ( & [ ( "__bswapsi2" , "bswapsi2.c" ) ] ) ;
524
519
}
525
520
You can’t perform that action at this time.
0 commit comments