Skip to content

Commit

Permalink
Make the documentation build work on CloudABI.
Browse files Browse the repository at this point in the history
Just like with wasm, we can't just import unix::ext and windows::ext.
Our shims are not complete enough for that.
  • Loading branch information
EdSchouten committed Jan 11, 2018
1 parent d9d97c9 commit cc8565b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/libstd/sys/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit cc8565b

Please sign in to comment.