Skip to content

Commit c9e26c8

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

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/lib.rs

+6-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,11 @@ 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(not(any(
158+
all(unix, not(any(target_arch = "wasm32", target_arch = "wasm64"))),
159+
target_os = "hermit",
160+
windows
161+
)))]
158162
pub fn is(_stream: Stream) -> bool {
159163
false
160164
}

0 commit comments

Comments
 (0)