@@ -38,7 +38,7 @@ cfg_if! {
3838 } else if #[ cfg( target_arch = "wasm32" ) ] {
3939 mod wasm;
4040 pub use self :: wasm:: * ;
41- } else if #[ cfg( target_env = "sgx" ) ] {
41+ } else if #[ cfg( all ( target_vendor = "fortanix" , target_env = "sgx" ) ) ] {
4242 mod sgx;
4343 pub use self :: sgx:: * ;
4444 } else {
@@ -55,7 +55,9 @@ cfg_if! {
5555 if #[ cfg( any( unix, target_os = "redox" ) ) ] {
5656 // On unix we'll document what's already available
5757 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" ) ) ) ] {
5961 // On CloudABI and wasm right now the module below doesn't compile
6062 // (missing things in `libc` which is empty) so just omit everything
6163 // with an empty module
@@ -76,7 +78,9 @@ cfg_if! {
7678 // On windows we'll just be documenting what's already available
7779 #[ allow( missing_docs) ]
7880 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" ) ) ) ] {
8084 // On CloudABI and wasm right now the shim below doesn't compile, so
8185 // just omit it
8286 #[ unstable( issue = "0" , feature = "std_internals" ) ]
0 commit comments