diff options
| author | Ed Schouten <ed@nuxi.nl> | 2018-01-11 11:21:12 +0100 |
|---|---|---|
| committer | Ed Schouten <ed@nuxi.nl> | 2018-01-11 11:29:52 +0100 |
| commit | cc8565b20a89a2169b2103dcbcacb218c79dc2a4 (patch) | |
| tree | 415171e323cbfadac899be27e68928b61876ad2b /src | |
| parent | d9d97c9f090bfaa6a90b752455769ec12cb227f7 (diff) | |
| download | rust-cc8565b20a89a2169b2103dcbcacb218c79dc2a4.tar.gz rust-cc8565b20a89a2169b2103dcbcacb218c79dc2a4.zip | |
Make the documentation build work on CloudABI.
Just like with wasm, we can't just import unix::ext and windows::ext. Our shims are not complete enough for that.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libstd/sys/mod.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/libstd/sys/mod.rs b/src/libstd/sys/mod.rs index a853d8ea69d..1231898ed7e 100644 --- a/src/libstd/sys/mod.rs +++ b/src/libstd/sys/mod.rs @@ -62,9 +62,10 @@ cfg_if! { if #[cfg(any(unix, target_os = "redox"))] { // On unix we'll document what's already available pub use self::ext as unix_ext; - } else if #[cfg(target_arch = "wasm32")] { - // On wasm right now the module below doesn't compile (missing things - // in `libc` which is empty) so just omit everything with an empty module + } else if #[cfg(any(target_os = "cloudabi", target_arch = "wasm32"))] { + // On CloudABI and wasm right now the module below doesn't compile + // (missing things in `libc` which is empty) so just omit everything + // with an empty module #[unstable(issue = "0", feature = "std_internals")] pub mod unix_ext {} } else { @@ -80,8 +81,9 @@ cfg_if! { if #[cfg(windows)] { // On windows we'll just be documenting what's already available pub use self::ext as windows_ext; - } else if #[cfg(target_arch = "wasm32")] { - // On wasm right now the shim below doesn't compile, so just omit it + } else if #[cfg(any(target_os = "cloudabi", target_arch = "wasm32"))] { + // On CloudABI and wasm right now the shim below doesn't compile, so + // just omit it #[unstable(issue = "0", feature = "std_internals")] pub mod windows_ext {} } else { |
