about summary refs log tree commit diff
path: root/library/std/src/sys/unix/env.rs
diff options
context:
space:
mode:
authorNikolay Arhipov <n@arhipov.net>2023-05-07 11:20:01 +0300
committerNikolay Arhipov <n@arhipov.net>2023-05-07 18:57:43 +0300
commit3ba3df376416eb821e2fe9e3e93243df96e3eaa9 (patch)
tree7176368105a3060d698e4134b8f2779fc7b442fc /library/std/src/sys/unix/env.rs
parent0dddad0dc5d614f799d7e04de4895e7a7418eccb (diff)
downloadrust-3ba3df376416eb821e2fe9e3e93243df96e3eaa9.tar.gz
rust-3ba3df376416eb821e2fe9e3e93243df96e3eaa9.zip
PS Vita std support
Diffstat (limited to 'library/std/src/sys/unix/env.rs')
-rw-r--r--library/std/src/sys/unix/env.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/env.rs b/library/std/src/sys/unix/env.rs
index 1a9276f1110..8c3ef88d8f8 100644
--- a/library/std/src/sys/unix/env.rs
+++ b/library/std/src/sys/unix/env.rs
@@ -141,6 +141,17 @@ pub mod os {
     pub const EXE_EXTENSION: &str = "elf";
 }
 
+#[cfg(target_os = "vita")]
+pub mod os {
+    pub const FAMILY: &str = "unix";
+    pub const OS: &str = "vita";
+    pub const DLL_PREFIX: &str = "lib";
+    pub const DLL_SUFFIX: &str = ".so";
+    pub const DLL_EXTENSION: &str = "so";
+    pub const EXE_SUFFIX: &str = ".elf";
+    pub const EXE_EXTENSION: &str = "elf";
+}
+
 #[cfg(all(target_os = "emscripten", target_arch = "asmjs"))]
 pub mod os {
     pub const FAMILY: &str = "unix";