forked from compio-rs/compio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.rs
More file actions
24 lines (22 loc) · 948 Bytes
/
build.rs
File metadata and controls
24 lines (22 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use cfg_aliases::cfg_aliases;
fn main() {
cfg_aliases! {
datasync: { any(
target_os = "android",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "illumos",
target_os = "linux",
target_os = "netbsd"
) },
gnulinux: { all(target_os = "linux", target_env = "gnu") },
freebsd: { target_os = "freebsd" },
solarish: { any(target_os = "illumos", target_os = "solaris") },
aio: { any(freebsd, solarish) },
polling: { any(all(unix, not(target_os = "linux")), feature = "polling") },
io_uring: { all(target_os = "linux", feature = "io-uring") },
fusion: { all(target_os = "linux", feature = "io-uring", feature = "polling") },
// fuchsia & aix also support splice, but it's OK here because we cannot test them.
linux_all: { any(target_os = "linux", target_os = "android") },
}
}