]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys_common/mod.rs
Add x86_64-fortanix-unknown-sgx target to libstd and dependencies
[rust.git] / src / libstd / sys_common / mod.rs
index 4b8cde3d1f486792fa0d788ab99db674c784949a..881794d9f16da4b7ada8f45bddab490fda957f4e 100644 (file)
@@ -57,9 +57,11 @@ macro_rules! rtassert {
 pub mod process;
 
 cfg_if! {
-    if #[cfg(any(target_os = "cloudabi", target_os = "l4re", target_os = "redox"))] {
-        pub use sys::net;
-    } else if #[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))] {
+    if #[cfg(any(target_os = "cloudabi",
+                 target_os = "l4re",
+                 target_os = "redox",
+                 all(target_arch = "wasm32", not(target_os = "emscripten")),
+                 target_env = "sgx"))] {
         pub use sys::net;
     } else {
         pub mod net;