Files
sausage/userland/brush/source/brush-test-harness/build.rs
T
2026-11-11 22:04:16 +00:00

12 lines
474 B
Rust

//! Defines a `pty` cfg for platforms that have a working PTY backend (i.e.
//! where the `expectrl` library we use for pty-based tests is supported).
//!
//! Keep this predicate in sync with the `[target.'cfg(...)'.dependencies]`
//! section in `Cargo.toml` (Cargo manifests can't reference custom cfg names).
fn main() {
cfg_aliases::cfg_aliases! {
pty: { any(target_os = "linux", target_os = "android", target_os = "macos", target_os = "freebsd") },
}
}