about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorMads Marquart <mads@marquart.dk>2024-05-17 22:01:54 +0200
committerMads Marquart <mads@marquart.dk>2024-05-17 22:11:51 +0200
commit8f18e4fe4bd8cce290c42b662e8db6897b47582d (patch)
tree7b3e37917fe492498eda8db10f99524e4b201fe7 /compiler/rustc_mir_transform/src
parent6016bad0636f3597851bf4d8e2b7262932dfb777 (diff)
downloadrust-8f18e4fe4bd8cce290c42b662e8db6897b47582d.tar.gz
rust-8f18e4fe4bd8cce290c42b662e8db6897b47582d.zip
Use `_NSGetArgc`/`_NSGetArgv` on iOS/tvOS/watchOS/visionOS
If we're comfortable using `_NSGetEnviron` from `crt_externs.h`, there shouldn't be an issue with using these either, and then we can merge with the macOS implementation.

This also fixes two test cases on Mac Catalyst:
- `tests/ui/command/command-argv0.rs`, maybe because `[[NSProcessInfo processInfo] arguments]` somehow converts the name of the first argument?
- `tests/ui/env-funky-keys.rs` since we no longer link to Foundation.
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions