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 = [];
if (hakEnv.isWin()) {
tools.push('perl'); // for openssl configure
tools.push('nmake');
tools.push(['perl', '--version']); // for openssl configure
tools.push(['nmake', '/?']);
} else {
tools.push('make');
tools.push(['make', '--version']);
}
for (const tool of tools) {
await new Promise((resolve, reject) => {
const proc = childProcess.spawn(tool, ['--version'], {
const proc = childProcess.spawn(tool[0], tool.slice(1), {
stdio: ['ignore'],
});
proc.on('exit', (code) => {