diff options
| author | Huang Qi <huangqi3@xiaomi.com> | 2024-09-19 16:00:56 +0800 |
|---|---|---|
| committer | Huang Qi <huangqi3@xiaomi.com> | 2024-09-24 15:35:40 +0800 |
| commit | 24f622cf801a840b0ad879ce5907f2cf316e26e8 (patch) | |
| tree | 36784c7813d4ef84d04cb234de49deba1ac76ea4 /library/std/src/sys/pal/unix/env.rs | |
| parent | f5cd2c5888011d4d80311e5b771c6da507d860dd (diff) | |
| download | rust-24f622cf801a840b0ad879ce5907f2cf316e26e8.tar.gz rust-24f622cf801a840b0ad879ce5907f2cf316e26e8.zip | |
Initial std library support for NuttX
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Diffstat (limited to 'library/std/src/sys/pal/unix/env.rs')
| -rw-r--r-- | library/std/src/sys/pal/unix/env.rs | 11 |
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 b2d399b8791..2aee0b5d460 100644 --- a/library/std/src/sys/pal/unix/env.rs +++ b/library/std/src/sys/pal/unix/env.rs @@ -283,3 +283,14 @@ pub mod os { pub const EXE_SUFFIX: &str = ""; pub const EXE_EXTENSION: &str = ""; } + +#[cfg(target_os = "nuttx")] +pub mod os { + pub const FAMILY: &str = "unix"; + pub const OS: &str = "nuttx"; + pub const DLL_PREFIX: &str = "lib"; + pub const DLL_SUFFIX: &str = ".so"; + pub const DLL_EXTENSION: &str = "so"; + pub const EXE_SUFFIX: &str = ""; + pub const EXE_EXTENSION: &str = ""; +} |
