Git for Windows puts its usr\bin on PATH ahead of the MSVC tools, so under Git Bash rustc picked up coreutils link.exe instead of MSVC link.exe and every link (even host build scripts like proc-macro2/serde) failed with "/usr/bin/link: extra operand". Split the build step: non-Windows keeps the bash script (needs --target handling); Windows builds under pwsh, where the MSVC environment from msvc-dev-cmd stays at the front of PATH. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| build.yml | ||