Preserve non-UTF-8 native paths in --option=value tools arguments
Problem
The joined option parser calls to_str before looking for the prefix. A native Unix path with non-UTF-8 bytes works as a separate value but the equivalent joined form is not recognized.
Reproduction and evidence
Audited canonical master 69a67c6e0fb700f37ee6114f5a66d37ee13771a5 (0.0.1-alpha-dev). Matching checkout-built compiler/std were used for compiler probes on Linux amd64 with Rust 1.89.0 and LLVM 21.1.8. Artifact inspection, mocked/projection checks and foreign-target object emission are identified below and are not native execution on those operating systems.
Construct OsString bytes /tmp/path- followed by 0xff. Args(["--prefix", raw_path]).path("--prefix") returns Some(path). Args([raw_bytes("--prefix=")+raw_path]).path("--prefix") returns None and leaves the option in values. The actual Args API was executed; no nonexistent-path or subprocess failure is needed.
Scope
Separate ASCII option names from native path values without converting the whole argument to UTF-8. Keep text option validation strict.
Starting points: tools/src/cli.rs:31.
Completion criteria
- [ ] Joined/separate forms yield equal raw path bytes.
- [ ] Normal UTF-8 and empty/missing values remain covered.
- [ ] Windows OsString handling and the -- separator are preserved.
This is a bounded newcomer task with the starting point and focused negative/positive checks above.
Related: #400, #1070. Related broad trackers or completed implementations are context, not claims that their entire scope is unfinished.