about summary refs log tree commit diff
path: root/library/std/src/sys/unix/env.rs
diff options
context:
space:
mode:
authorQiu Chaofan <qcf@ecnelises.com>2023-04-03 12:33:51 +0800
committerQiu Chaofan <qcf@ecnelises.com>2023-10-09 14:02:57 +0800
commit14d29be03c58587ef4bc7b3d2e1e1e29f2be5985 (patch)
treed9e11e6ff14f22f1e8a2f0d2fda26a27cd598027 /library/std/src/sys/unix/env.rs
parent1f48cbc3f8dbd393a7e713a0f90d7c6ec72d58ee (diff)
downloadrust-14d29be03c58587ef4bc7b3d2e1e1e29f2be5985.tar.gz
rust-14d29be03c58587ef4bc7b3d2e1e1e29f2be5985.zip
Support AIX in Rust standard library
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 c6d8578a629..3bb492fa98b 100644
--- a/library/std/src/sys/unix/env.rs
+++ b/library/std/src/sys/unix/env.rs
@@ -261,3 +261,14 @@ pub mod os {
     pub const EXE_SUFFIX: &str = "";
     pub const EXE_EXTENSION: &str = "";
 }
+
+#[cfg(target_os = "aix")]
+pub mod os {
+    pub const FAMILY: &str = "unix";
+    pub const OS: &str = "aix";
+    pub const DLL_PREFIX: &str = "lib";
+    pub const DLL_SUFFIX: &str = ".a";
+    pub const DLL_EXTENSION: &str = "a";
+    pub const EXE_SUFFIX: &str = "";
+    pub const EXE_EXTENSION: &str = "";
+}