Skip to content

Commit cc8565b

Browse files
committed
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.
1 parent d9d97c9 commit cc8565b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/libstd/sys/mod.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ cfg_if! {
6262
if #[cfg(any(unix, target_os = "redox"))] {
6363
// On unix we'll document what's already available
6464
pub use self::ext as unix_ext;
65-
} else if #[cfg(target_arch = "wasm32")] {
66-
// On wasm right now the module below doesn't compile (missing things
67-
// in `libc` which is empty) so just omit everything with an empty module
65+
} else if #[cfg(any(target_os = "cloudabi", target_arch = "wasm32"))] {
66+
// On CloudABI and wasm right now the module below doesn't compile
67+
// (missing things in `libc` which is empty) so just omit everything
68+
// with an empty module
6869
#[unstable(issue = "0", feature = "std_internals")]
6970
pub mod unix_ext {}
7071
} else {
@@ -80,8 +81,9 @@ cfg_if! {
8081
if #[cfg(windows)] {
8182
// On windows we'll just be documenting what's already available
8283
pub use self::ext as windows_ext;
83-
} else if #[cfg(target_arch = "wasm32")] {
84-
// On wasm right now the shim below doesn't compile, so just omit it
84+
} else if #[cfg(any(target_os = "cloudabi", target_arch = "wasm32"))] {
85+
// On CloudABI and wasm right now the shim below doesn't compile, so
86+
// just omit it
8587
#[unstable(issue = "0", feature = "std_internals")]
8688
pub mod windows_ext {}
8789
} else {

0 commit comments

Comments
 (0)