@@ -38,7 +38,7 @@ cfg_if! {
38
38
} else if #[ cfg( target_arch = "wasm32" ) ] {
39
39
mod wasm;
40
40
pub use self :: wasm:: * ;
41
- } else if #[ cfg( target_env = "sgx" ) ] {
41
+ } else if #[ cfg( all ( target_vendor = "fortanix" , target_env = "sgx" ) ) ] {
42
42
mod sgx;
43
43
pub use self :: sgx:: * ;
44
44
} else {
@@ -55,7 +55,9 @@ cfg_if! {
55
55
if #[ cfg( any( unix, target_os = "redox" ) ) ] {
56
56
// On unix we'll document what's already available
57
57
pub use self :: ext as unix_ext;
58
- } else if #[ cfg( any( target_os = "cloudabi" , target_arch = "wasm32" , target_env = "sgx" ) ) ] {
58
+ } else if #[ cfg( any( target_os = "cloudabi" ,
59
+ target_arch = "wasm32" ,
60
+ all( target_vendor = "fortanix" , target_env = "sgx" ) ) ) ] {
59
61
// On CloudABI and wasm right now the module below doesn't compile
60
62
// (missing things in `libc` which is empty) so just omit everything
61
63
// with an empty module
@@ -76,7 +78,9 @@ cfg_if! {
76
78
// On windows we'll just be documenting what's already available
77
79
#[ allow( missing_docs) ]
78
80
pub use self :: ext as windows_ext;
79
- } else if #[ cfg( any( target_os = "cloudabi" , target_arch = "wasm32" , target_env = "sgx" ) ) ] {
81
+ } else if #[ cfg( any( target_os = "cloudabi" ,
82
+ target_arch = "wasm32" ,
83
+ all( target_vendor = "fortanix" , target_env = "sgx" ) ) ) ] {
80
84
// On CloudABI and wasm right now the shim below doesn't compile, so
81
85
// just omit it
82
86
#[ unstable( issue = "0" , feature = "std_internals" ) ]
0 commit comments