Commit 35e0f38
committed
feat(toolchain):
`@system` is available for MSVC only, and that is deliberate rather than
incidental. xlings depends on the host as little as it can: a toolchain comes
from a payload, which is what makes "the manifest says 14.44.35207" true on
every machine instead of on the one that happened to have it. Offering
`gcc@system` invites that uncertainty back, and the alternative is one
command away.
MSVC is the exception because Windows is. Visual Studio is frequently already
installed and cannot always be redistributed, so refusing to use it would
mean refusing to build. A platform fact, not a general capability -- so it is
not generalised.
Until now the spelling was merely unimplemented, which means it failed later,
somewhere else, with a message about something else. It is now refused at the
parse, with the version form and the reason for the one exception.
Test asserts the refusal AND that the message names the alternative -- a
refusal that does not is just a wall. Verified against a guard that never
fires.gcc@system is rejected, and says what to do instead1 parent 1070e14 commit 35e0f38
2 files changed
Lines changed: 53 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
232 | 261 | | |
233 | 262 | | |
234 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
87 | 111 | | |
88 | 112 | | |
89 | 113 | | |
| |||
0 commit comments