Commit e616b9f
fix(build): the fused output's .exe follows the TARGET, not the host
`clode build`'s default output name keyed its .exe suffix off process.platform
(the build host), which got cross-builds exactly backwards: `--target windows-x64`
from a POSIX host produced a `quaude` with no .exe (unrunnable on Windows until
renamed), and a POSIX `--target` built FROM Windows produced a spurious `.exe`.
Extract the naming into a pure, exported defaultBuildOut({target, self,
hostPlatform}): a windows-* target is .exe regardless of host, a non-windows
target never is, and with no --target it follows the host (native builds
unchanged). Explicit --out is still respected verbatim. Unit-tested across the
cross-build matrix (windows-from-POSIX, POSIX-from-Windows, native, --self).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0147MaTTj7XYS2PTUmJn3zUy1 parent 6db5d52 commit e616b9f
2 files changed
Lines changed: 36 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
712 | 723 | | |
713 | 724 | | |
714 | 725 | | |
| |||
1001 | 1012 | | |
1002 | 1013 | | |
1003 | 1014 | | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
1009 | 1019 | | |
1010 | 1020 | | |
1011 | 1021 | | |
| |||
1393 | 1403 | | |
1394 | 1404 | | |
1395 | 1405 | | |
1396 | | - | |
| 1406 | + | |
1397 | 1407 | | |
1398 | 1408 | | |
1399 | 1409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments