(exe: string, args: string[], options: childProcess.SpawnSyncOptionsWithStringEncoding)
| 86 | } |
| 87 | |
| 88 | function runProcess(exe: string, args: string[], options: childProcess.SpawnSyncOptionsWithStringEncoding) { |
| 89 | if (logLevel !== 'error') { |
| 90 | // eslint-disable-next-line no-console |
| 91 | console.info(`Running '${exe}${args.length > 0 ? ` "${args.join('" "')}"` : ''}'`); |
| 92 | } |
| 93 | return childProcess.spawnSync(exe, args, options); |
| 94 | } |
| 95 | |
| 96 | function ninja(stdio: 'inherit'|'pipe', ...args: string[]) { |
| 97 | let buildRoot = path.dirname(GEN_DIR); |