Skip to content

Commit

Permalink
Die hard if mc.exe or mt.exe not found
Browse files Browse the repository at this point in the history
Even configure would pass, that producess quite subtle build errors
which are better to avoid at configure stage already.
  • Loading branch information
weltling committed Mar 11, 2019
1 parent e93259b commit 6814ba1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions win32/build/confutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2936,11 +2936,15 @@ function toolset_setup_project_tools()
PATH_PROG('lemon');

// avoid picking up midnight commander from cygwin
PATH_PROG('mc', WshShell.Environment("Process").Item("PATH"));
if (!PATH_PROG('mc', WshShell.Environment("Process").Item("PATH"))) {
ERROR('mc is required')
}

// Try locating the manifest tool
if (VS_TOOLSET) {
PATH_PROG('mt', WshShell.Environment("Process").Item("PATH"));
if (!PATH_PROG('mt', WshShell.Environment("Process").Item("PATH"))) {
ERROR('mt is required')
}
}
}
/* Get compiler if the toolset is supported */
Expand Down

0 comments on commit 6814ba1

Please sign in to comment.