about summary refs log tree commit diff
path: root/library/std/src/sys/unix/args.rs
diff options
context:
space:
mode:
authorVladimir Michael Eatwell <dimir@fb.com>2022-03-23 16:05:01 +0000
committerVladimir Michael Eatwell <dimir@fb.com>2022-07-20 08:57:36 +0100
commit439d64a83c84fe36befacc4af867eaadb96589d5 (patch)
tree18b420b8abf27c5511e8d1bee7fbfc1a715f3799 /library/std/src/sys/unix/args.rs
parentc3605f8c8020dbbe8f0d1961c7b33c4c4b78ad0d (diff)
downloadrust-439d64a83c84fe36befacc4af867eaadb96589d5.tar.gz
rust-439d64a83c84fe36befacc4af867eaadb96589d5.zip
Library changes for Apple WatchOS
Diffstat (limited to 'library/std/src/sys/unix/args.rs')
-rw-r--r--library/std/src/sys/unix/args.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/unix/args.rs b/library/std/src/sys/unix/args.rs
index 79964e2b238..a342f0f5e85 100644
--- a/library/std/src/sys/unix/args.rs
+++ b/library/std/src/sys/unix/args.rs
@@ -151,7 +151,7 @@ mod imp {
     }
 }
 
-#[cfg(any(target_os = "macos", target_os = "ios"))]
+#[cfg(any(target_os = "macos", target_os = "ios", target_os = "watchos"))]
 mod imp {
     use super::Args;
     use crate::ffi::CStr;
@@ -192,7 +192,7 @@ mod imp {
     // for i in (0..[args count])
     //      res.push([args objectAtIndex:i])
     // res
-    #[cfg(target_os = "ios")]
+    #[cfg(any(target_os = "ios", target_os = "watchos"))]
     pub fn args() -> Args {
         use crate::ffi::OsString;
         use crate::mem;