File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ fn main() {
23
23
return ;
24
24
}
25
25
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
27
27
// provide them.
28
- if ( target. contains ( "wasm32 " ) && !target. contains ( "wasi" ) )
28
+ if ( target. contains ( "wasm " ) && !target. contains ( "wasi" ) )
29
29
|| ( target. contains ( "sgx" ) && target. contains ( "fortanix" ) )
30
30
|| target. contains ( "-none" )
31
31
|| target. contains ( "nvptx" )
@@ -50,13 +50,13 @@ fn main() {
50
50
if !cfg ! ( feature = "mangled-names" ) && cfg ! ( feature = "c" ) {
51
51
// Don't use a C compiler for these targets:
52
52
//
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
54
54
// unlikely that the C is really that much better than our own Rust.
55
55
// * nvptx - everything is bitcode, not compatible with mixed C/Rust
56
56
// * riscv - the rust-lang/rust distribution container doesn't have a C
57
57
// compiler nor is cc-rs ready for compilation to riscv (at this
58
58
// 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" ) {
60
60
#[ cfg( feature = "c" ) ]
61
61
c:: compile ( & llvm_target, & target) ;
62
62
}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ pub mod float;
39
39
pub mod int;
40
40
41
41
#[ cfg( any(
42
- all( target_arch = "wasm32 " , target_os = "unknown" ) ,
42
+ all( target_family = "wasm " , target_os = "unknown" ) ,
43
43
all( target_arch = "x86_64" , target_os = "uefi" ) ,
44
44
all( target_arch = "arm" , target_os = "none" ) ,
45
45
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 {
16
16
17
17
#[ cfg( any(
18
18
all(
19
- target_arch = "wasm32 " ,
19
+ target_family = "wasm " ,
20
20
target_os = "unknown" ,
21
21
not( target_env = "wasi" )
22
22
) ,
@@ -66,7 +66,7 @@ no_mangle! {
66
66
67
67
#[ cfg( any(
68
68
all(
69
- target_arch = "wasm32 " ,
69
+ target_family = "wasm " ,
70
70
target_os = "unknown" ,
71
71
not( target_env = "wasi" )
72
72
) ,
You can’t perform that action at this time.
0 commit comments