Skip to content

Commit 4358be4

Browse files
author
Jethro Beekman
committed
SGX target: fix docs build
1 parent f72f28f commit 4358be4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/sys/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ cfg_if! {
6565
if #[cfg(any(unix, target_os = "redox"))] {
6666
// On unix we'll document what's already available
6767
pub use self::ext as unix_ext;
68-
} else if #[cfg(any(target_os = "cloudabi", target_arch = "wasm32"))] {
68+
} else if #[cfg(any(target_os = "cloudabi", target_arch = "wasm32", target_env = "sgx"))] {
6969
// On CloudABI and wasm right now the module below doesn't compile
7070
// (missing things in `libc` which is empty) so just omit everything
7171
// with an empty module
@@ -86,7 +86,7 @@ cfg_if! {
8686
// On windows we'll just be documenting what's already available
8787
#[allow(missing_docs)]
8888
pub use self::ext as windows_ext;
89-
} else if #[cfg(any(target_os = "cloudabi", target_arch = "wasm32"))] {
89+
} else if #[cfg(any(target_os = "cloudabi", target_arch = "wasm32", target_env = "sgx"))] {
9090
// On CloudABI and wasm right now the shim below doesn't compile, so
9191
// just omit it
9292
#[unstable(issue = "0", feature = "std_internals")]

0 commit comments

Comments
 (0)