Skip to content

Commit

Permalink
async only on x86
Browse files Browse the repository at this point in the history
  • Loading branch information
DebugSteven committed Oct 25, 2022
1 parent 92bed92 commit 0167bbb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/shims/unix/linux/fs/epoll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ impl FileDescriptor for Epoll {
Ok(Box::new(self.clone()))
}

fn is_tty(&self) -> bool {
false
}

fn close<'tcx>(
self: Box<Self>,
_communicate_allowed: bool,
Expand Down
4 changes: 4 additions & 0 deletions src/shims/unix/linux/fs/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ impl FileDescriptor for Event {
Ok(Box::new(Event { val: self.val }))
}

fn is_tty(&self) -> bool {
false
}

fn write<'tcx>(
&self,
_communicate_allowed: bool,
Expand Down
4 changes: 4 additions & 0 deletions src/shims/unix/linux/fs/socketpair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ impl FileDescriptor for SocketPair {
Ok(Box::new(SocketPair))
}

fn is_tty(&self) -> bool {
false
}

fn close<'tcx>(
self: Box<Self>,
_communicate_allowed: bool,
Expand Down
4 changes: 4 additions & 0 deletions tests/pass-dep/tokio_mvp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
//@only-target-linux: the errors differ too much between platforms

#[tokio::main]
#[cfg(target_arch = "x86_64")]
async fn main() {}

#[cfg(target_arch = "not_x86_64")]
fn main() {}

0 comments on commit 0167bbb

Please sign in to comment.