Skip to content

Commit 50984d9

Browse files
committed
Modifications needed to compile wasm64-wasi
1 parent 6633c0e commit 50984d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub enum Stream {
3636
}
3737

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

@@ -154,7 +154,7 @@ unsafe fn msys_tty_on(fd: DWORD) -> bool {
154154
}
155155

156156
/// returns true if this is a tty
157-
#[cfg(any(target_arch = "wasm32", target_env = "sgx"))]
157+
#[cfg(any(target_arch = "wasm32", target_arch = "wasm64", target_env = "sgx"))]
158158
pub fn is(_stream: Stream) -> bool {
159159
false
160160
}

0 commit comments

Comments
 (0)