From 5d55ac14b7340ba7df7425890cf1f1cfb919a800 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Tue, 25 Oct 2022 15:56:50 +0800 Subject: [PATCH] lib: add support for xous Add support for riscv32imac-unknown-xous-elf, which does not support ttys. Signed-off-by: Sean Cross --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index b155f08..eed1474 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -154,7 +154,7 @@ unsafe fn msys_tty_on(fd: DWORD) -> bool { } /// returns true if this is a tty -#[cfg(any(target_arch = "wasm32", target_env = "sgx"))] +#[cfg(any(target_arch = "wasm32", target_env = "sgx", target_os = "xous"))] pub fn is(_stream: Stream) -> bool { false }