Skip to content

Commit

Permalink
Modifications needed to compile wasm64-wasi
Browse files Browse the repository at this point in the history
  • Loading branch information
john-sharratt committed May 26, 2022
1 parent 6633c0e commit c9e26c8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub enum Stream {
}

/// returns true if this is a tty
#[cfg(all(unix, not(target_arch = "wasm32")))]
#[cfg(all(unix, not(any(target_arch = "wasm32", target_arch = "wasm64"))))]
pub fn is(stream: Stream) -> bool {
extern crate libc;

Expand Down Expand Up @@ -154,7 +154,11 @@ unsafe fn msys_tty_on(fd: DWORD) -> bool {
}

/// returns true if this is a tty
#[cfg(any(target_arch = "wasm32", target_env = "sgx"))]
#[cfg(not(any(
all(unix, not(any(target_arch = "wasm32", target_arch = "wasm64"))),
target_os = "hermit",
windows
)))]
pub fn is(_stream: Stream) -> bool {
false
}
Expand Down

0 comments on commit c9e26c8

Please sign in to comment.