We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6633c0e commit c9e26c8Copy full SHA for c9e26c8
src/lib.rs
@@ -36,7 +36,7 @@ pub enum Stream {
36
}
37
38
/// returns true if this is a tty
39
-#[cfg(all(unix, not(target_arch = "wasm32")))]
+#[cfg(all(unix, not(any(target_arch = "wasm32", target_arch = "wasm64"))))]
40
pub fn is(stream: Stream) -> bool {
41
extern crate libc;
42
@@ -154,7 +154,11 @@ unsafe fn msys_tty_on(fd: DWORD) -> bool {
154
155
156
157
-#[cfg(any(target_arch = "wasm32", target_env = "sgx"))]
+#[cfg(not(any(
158
+ all(unix, not(any(target_arch = "wasm32", target_arch = "wasm64"))),
159
+ target_os = "hermit",
160
+ windows
161
+)))]
162
pub fn is(_stream: Stream) -> bool {
163
false
164
0 commit comments