about summary refs log tree commit diff
path: root/library/std/src/sys/unix/args.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/sys/unix/args.rs')
-rw-r--r--library/std/src/sys/unix/args.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/args.rs b/library/std/src/sys/unix/args.rs
index 0bd1ea64577..ee5e3983ac2 100644
--- a/library/std/src/sys/unix/args.rs
+++ b/library/std/src/sys/unix/args.rs
@@ -246,3 +246,15 @@ mod imp {
         Args { iter: res.into_iter() }
     }
 }
+
+#[cfg(target_os = "espidf")]
+mod imp {
+    use super::Args;
+
+    #[inline(always)]
+    pub unsafe fn init(_argc: isize, _argv: *const *const u8) {}
+
+    pub fn args() -> Args {
+        Args { iter: Vec::new().into_iter() }
+    }
+}