diff options
| author | 王宇逸 <Strawberry_Str@hotmail.com> | 2025-06-01 23:12:35 +0800 |
|---|---|---|
| committer | 王宇逸 <Strawberry_Str@hotmail.com> | 2025-06-16 09:24:07 +0800 |
| commit | 3cb0cba054d9d1871f3a10345d5c30cfc7ac214c (patch) | |
| tree | 8e8c225bf85c5c9afc3afe80cdb7b5ebf49140ba /library/std/src/sys/path/mod.rs | |
| parent | 015c7770ec0ffdba9ff03f1861144a827497f8ca (diff) | |
| download | rust-3cb0cba054d9d1871f3a10345d5c30cfc7ac214c.tar.gz rust-3cb0cba054d9d1871f3a10345d5c30cfc7ac214c.zip | |
Handle win32 separator & prefixes for cygwin paths
Diffstat (limited to 'library/std/src/sys/path/mod.rs')
| -rw-r--r-- | library/std/src/sys/path/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/std/src/sys/path/mod.rs b/library/std/src/sys/path/mod.rs index 1fa4e80d678..a4ff4338cf5 100644 --- a/library/std/src/sys/path/mod.rs +++ b/library/std/src/sys/path/mod.rs @@ -1,6 +1,7 @@ cfg_if::cfg_if! { if #[cfg(target_os = "windows")] { mod windows; + mod windows_prefix; pub use windows::*; } else if #[cfg(all(target_vendor = "fortanix", target_env = "sgx"))] { mod sgx; @@ -11,6 +12,10 @@ cfg_if::cfg_if! { } else if #[cfg(target_os = "uefi")] { mod uefi; pub use uefi::*; + } else if #[cfg(target_os = "cygwin")] { + mod cygwin; + mod windows_prefix; + pub use cygwin::*; } else { mod unix; pub use unix::*; |
