diff options
| author | Vladimir Michael Eatwell <dimir@fb.com> | 2022-03-23 16:05:01 +0000 |
|---|---|---|
| committer | Vladimir Michael Eatwell <dimir@fb.com> | 2022-07-20 08:57:36 +0100 |
| commit | 439d64a83c84fe36befacc4af867eaadb96589d5 (patch) | |
| tree | 18b420b8abf27c5511e8d1bee7fbfc1a715f3799 /library/std/src/sys/unix/env.rs | |
| parent | c3605f8c8020dbbe8f0d1961c7b33c4c4b78ad0d (diff) | |
| download | rust-439d64a83c84fe36befacc4af867eaadb96589d5.tar.gz rust-439d64a83c84fe36befacc4af867eaadb96589d5.zip | |
Library changes for Apple WatchOS
Diffstat (limited to 'library/std/src/sys/unix/env.rs')
| -rw-r--r-- | library/std/src/sys/unix/env.rs | 11 |
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 4d8391656a4..c9ba661c829 100644 --- a/library/std/src/sys/unix/env.rs +++ b/library/std/src/sys/unix/env.rs @@ -31,6 +31,17 @@ pub mod os { pub const EXE_EXTENSION: &str = ""; } +#[cfg(target_os = "watchos")] +pub mod os { + pub const FAMILY: &str = "unix"; + pub const OS: &str = "watchos"; + 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"; |
