We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9081929 + f621c25 commit 8f1bbd6Copy full SHA for 8f1bbd6
src/libstd/sys/unix/args.rs
@@ -80,7 +80,13 @@ mod imp {
80
81
#[inline(always)]
82
pub unsafe fn init(_argc: isize, _argv: *const *const u8) {
83
- #[cfg(not(all(target_os = "linux", target_env = "gnu")))]
+ // On Linux-GNU, we rely on `ARGV_INIT_ARRAY` below to initialize
84
+ // `ARGC` and `ARGV`. But in Miri that does not actually happen so we
85
+ // still initialize here.
86
+ #[cfg(any(
87
+ miri,
88
+ not(all(target_os = "linux", target_env = "gnu"))
89
+ ))]
90
really_init(_argc, _argv);
91
}
92
0 commit comments