of course nmake is special too

This commit is contained in:
David Baker 2020-02-17 15:59:55 +00:00
parent 0ccc29e504
commit 161a76de46

View file

@ -34,15 +34,15 @@ module.exports = async function(hakEnv, moduleInfo) {
const tools = []; const tools = [];
if (hakEnv.isWin()) { if (hakEnv.isWin()) {
tools.push('perl'); // for openssl configure tools.push(['perl', '--version']); // for openssl configure
tools.push('nmake'); tools.push(['nmake', '/?']);
} else { } else {
tools.push('make'); tools.push(['make', '--version']);
} }
for (const tool of tools) { for (const tool of tools) {
await new Promise((resolve, reject) => { await new Promise((resolve, reject) => {
const proc = childProcess.spawn(tool, ['--version'], { const proc = childProcess.spawn(tool[0], tool.slice(1), {
stdio: ['ignore'], stdio: ['ignore'],
}); });
proc.on('exit', (code) => { proc.on('exit', (code) => {