mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 23:11:14 -03:00
A subsequent commit will need to test for cygwin in a new crate. On current stable Rust (1.92) this works via `#[cfg(target_os = "cygwin)]`, but our MSRV (1.85) does not support this. To avoid code duplication, the OS detection logic is extracted into the build helper crate. For now, only `detect_cygwin` is needed, but it would be inconsistent to extract that but not the same functions for other operating systems. Part of #12183