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
20 lines (19 loc) · 698 Bytes
/
build.rs
File metadata and controls
20 lines (19 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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) },
io_uring: { all(target_os = "linux", feature = "io-uring") },
fusion: { all(target_os = "linux", feature = "io-uring", feature = "polling") }
}
}