File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ fn main() {
2323 return ;
2424 }
2525
26- // Forcibly enable memory intrinsics on wasm32 & SGX as we don't have a libc to
26+ // Forcibly enable memory intrinsics on wasm & SGX as we don't have a libc to
2727 // provide them.
28- if ( target. contains ( "wasm32 " ) && !target. contains ( "wasi" ) )
28+ if ( target. contains ( "wasm " ) && !target. contains ( "wasi" ) )
2929 || ( target. contains ( "sgx" ) && target. contains ( "fortanix" ) )
3030 || target. contains ( "-none" )
3131 || target. contains ( "nvptx" )
@@ -50,13 +50,13 @@ fn main() {
5050 if !cfg ! ( feature = "mangled-names" ) && cfg ! ( feature = "c" ) {
5151 // Don't use a C compiler for these targets:
5252 //
53- // * wasm32 - clang 8 for wasm is somewhat hard to come by and it's
53+ // * wasm - clang for wasm is somewhat hard to come by and it's
5454 // unlikely that the C is really that much better than our own Rust.
5555 // * nvptx - everything is bitcode, not compatible with mixed C/Rust
5656 // * riscv - the rust-lang/rust distribution container doesn't have a C
5757 // compiler nor is cc-rs ready for compilation to riscv (at this
5858 // time). This can probably be removed in the future
59- if !target. contains ( "wasm32 " ) && !target. contains ( "nvptx" ) && !target. starts_with ( "riscv" ) {
59+ if !target. contains ( "wasm " ) && !target. contains ( "nvptx" ) && !target. starts_with ( "riscv" ) {
6060 #[ cfg( feature = "c" ) ]
6161 c:: compile ( & llvm_target, & target) ;
6262 }
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ pub mod float;
3939pub mod int;
4040
4141#[ cfg( any(
42- all( target_arch = "wasm32 " , target_os = "unknown" ) ,
42+ all( target_family = "wasm " , target_os = "unknown" ) ,
4343 all( target_arch = "x86_64" , target_os = "uefi" ) ,
4444 all( target_arch = "arm" , target_os = "none" ) ,
4545 all( target_vendor = "fortanix" , target_env = "sgx" )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ macro_rules! no_mangle {
1616
1717#[ cfg( any(
1818 all(
19- target_arch = "wasm32 " ,
19+ target_family = "wasm " ,
2020 target_os = "unknown" ,
2121 not( target_env = "wasi" )
2222 ) ,
@@ -66,7 +66,7 @@ no_mangle! {
6666
6767#[ cfg( any(
6868 all(
69- target_arch = "wasm32 " ,
69+ target_family = "wasm " ,
7070 target_os = "unknown" ,
7171 not( target_env = "wasi" )
7272 ) ,
You can’t perform that action at this time.
0 commit comments