about summary refs log tree commit diff
path: root/library/std/src/sys/pal/unix/env.rs
diff options
context:
space:
mode:
authorAdam Gastineau <adam@agg.im>2024-03-18 20:45:45 -0700
committerAdam Gastineau <adam@agg.im>2024-03-18 20:45:45 -0700
commit4f6f433745077c9a0179d582ffa3851baf4d5c5f (patch)
tree0dae2f3a575762b24bb381a75f5150e22077d75c /library/std/src/sys/pal/unix/env.rs
parent21d94a3d2c63cacf8eaf9d0ca770c0b450c558d4 (diff)
downloadrust-4f6f433745077c9a0179d582ffa3851baf4d5c5f.tar.gz
rust-4f6f433745077c9a0179d582ffa3851baf4d5c5f.zip
Support for visionOS
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 3d4ba509829..fb1f868644d 100644
--- a/library/std/src/sys/pal/unix/env.rs
+++ b/library/std/src/sys/pal/unix/env.rs
@@ -53,6 +53,17 @@ pub mod os {
     pub const EXE_EXTENSION: &str = "";
 }
 
+#[cfg(target_os = "visionos")]
+pub mod os {
+    pub const FAMILY: &str = "unix";
+    pub const OS: &str = "visionos";
+    pub const DLL_PREFIX: &str = "lib";
+    pub const DLL_SUFFIX: &str = ".dylib";
+    pub const DLL_EXTENSION: &str = "dylib";
+    pub const EXE_SUFFIX: &str = "";
+    pub const EXE_EXTENSION: &str = "";
+}
+
 #[cfg(target_os = "freebsd")]
 pub mod os {
     pub const FAMILY: &str = "unix";