Commit 6e57861
authored
fix(windows): #120 explicit /SUBSYSTEM:CONSOLE for non-UI PE builds (v0.5.179)
Closes #120.
The actual fix (gating `/SUBSYSTEM:CONSOLE` vs `/SUBSYSTEM:WINDOWS` on `ctx.needs_ui`) already landed in v0.5.133. This PR extracts the inline ternary into a named `windows_pe_subsystem_flag(needs_ui)` helper with a doc-comment referencing #120, and adds two `windows_link_tests` unit tests (`cli_build_uses_console_subsystem` / `ui_build_uses_windows_subsystem`) that pin the flag choice so a future refactor can't silently re-break it.
No behavior change. Verified by the Windows-2022 doc-tests runner in CI.
Cloud-authored PR, manually audited and metadata (version bump + CLAUDE.md entry) folded in at merge.1 parent 12d572b commit 6e57861
3 files changed
Lines changed: 37 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1164 | 1164 | | |
1165 | 1165 | | |
1166 | 1166 | | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
1167 | 1178 | | |
1168 | 1179 | | |
1169 | 1180 | | |
| |||
6237 | 6248 | | |
6238 | 6249 | | |
6239 | 6250 | | |
6240 | | - | |
6241 | | - | |
6242 | | - | |
6243 | | - | |
6244 | | - | |
6245 | | - | |
6246 | | - | |
6247 | | - | |
| 6251 | + | |
| 6252 | + | |
| 6253 | + | |
| 6254 | + | |
6248 | 6255 | | |
6249 | 6256 | | |
6250 | 6257 | | |
| |||
8403 | 8410 | | |
8404 | 8411 | | |
8405 | 8412 | | |
| 8413 | + | |
| 8414 | + | |
| 8415 | + | |
| 8416 | + | |
| 8417 | + | |
| 8418 | + | |
| 8419 | + | |
| 8420 | + | |
| 8421 | + | |
| 8422 | + | |
| 8423 | + | |
| 8424 | + | |
| 8425 | + | |
| 8426 | + | |
| 8427 | + | |
| 8428 | + | |
| 8429 | + | |
| 8430 | + | |
| 8431 | + | |
0 commit comments