about summary refs log tree commit diff
path: root/library/std/src/sys/pal/unix/env.rs
diff options
context:
space:
mode:
author王宇逸 <Strawberry_Str@hotmail.com>2024-12-26 16:52:54 +0900
committer王宇逸 <Strawberry_Str@hotmail.com>2025-03-10 21:23:31 +0800
commitc9ccec93fa5e87f1363f0ce6edc897340e8c3884 (patch)
treea1ffb9dc01993eeeb09e71a164288b2e5b2c04ea /library/std/src/sys/pal/unix/env.rs
parent2b285cd5f0877e30ad1d83e04f8cc46254e43391 (diff)
downloadrust-c9ccec93fa5e87f1363f0ce6edc897340e8c3884.tar.gz
rust-c9ccec93fa5e87f1363f0ce6edc897340e8c3884.zip
Initial STD support for Cygwin
Signed-off-by: Ookiineko <chiisaineko@protonmail.com>
Diffstat (limited to 'library/std/src/sys/pal/unix/env.rs')
-rw-r--r--library/std/src/sys/pal/unix/env.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/library/std/src/sys/pal/unix/env.rs b/library/std/src/sys/pal/unix/env.rs
index 2aee0b5d460..c6609298f4b 100644
--- a/library/std/src/sys/pal/unix/env.rs
+++ b/library/std/src/sys/pal/unix/env.rs
@@ -108,6 +108,17 @@ pub mod os {
     pub const EXE_EXTENSION: &str = "";
 }
 
+#[cfg(target_os = "cygwin")]
+pub mod os {
+    pub const FAMILY: &str = "unix";
+    pub const OS: &str = "cygwin";
+    pub const DLL_PREFIX: &str = "";
+    pub const DLL_SUFFIX: &str = ".dll";
+    pub const DLL_EXTENSION: &str = "dll";
+    pub const EXE_SUFFIX: &str = ".exe";
+    pub const EXE_EXTENSION: &str = "exe";
+}
+
 #[cfg(target_os = "android")]
 pub mod os {
     pub const FAMILY: &str = "unix";