Commit 0820688
committed
fix(build:wasm): quote shell args and include message in toolchain detect (#990)
- quoteShellArg: with shell: true, execFileSync joins cmd+args into
one shell string, so whitespace in paths (e.g. Windows 'C:\Users\First Last')
gets re-split. Quote args containing whitespace with platform-appropriate
quoting (cmd.exe double quotes vs POSIX single quotes).
- Toolchain detection: include build.message in the combined string so
Node-surfaced ENOENTs (e.g. 'spawn emcc ENOENT') trigger the missing
toolchain banner. Also match on ENOENT as a trigger word.
Impact: 2 functions changed, 2 affected1 parent a4a21eb commit 0820688
1 file changed
Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
39 | 54 | | |
40 | 55 | | |
41 | 56 | | |
42 | 57 | | |
43 | 58 | | |
44 | 59 | | |
45 | | - | |
| 60 | + | |
46 | 61 | | |
47 | 62 | | |
48 | 63 | | |
| |||
229 | 244 | | |
230 | 245 | | |
231 | 246 | | |
232 | | - | |
233 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
234 | 254 | | |
235 | 255 | | |
236 | 256 | | |
| |||
0 commit comments