Commit 136eb2a
committed
sources: an override's path resolves the executable suffix the host appends itself
A shell on Windows answers `C:/Program Files/CMake/bin/cmake` for a `cmake.exe`,
and process creation there appends `.exe`, so a path stated without it names a
program the machine would run; refusing it answers about spelling rather than
about the machine. The plugin-side resolver gained the same rule in
mcpp-plugins 0.19.0, where CI measured the refusal.
Verified against a declared payload overridden by `{ program = "bin/faketool" }`
with only `bin/faketool.exe` present: the build reports
`Using xim:prec-absent <- .../bin/faketool.exe [custom . mcpp.toml:13]`.1 parent 2939d65 commit 136eb2a
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
230 | 241 | | |
231 | 242 | | |
232 | 243 | | |
| |||
0 commit comments