Skip to content

Commit 6814ba1

Browse files
committed
Die hard if mc.exe or mt.exe not found
Even configure would pass, that producess quite subtle build errors which are better to avoid at configure stage already.
1 parent e93259b commit 6814ba1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

win32/build/confutils.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2936,11 +2936,15 @@ function toolset_setup_project_tools()
29362936
PATH_PROG('lemon');
29372937

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

29412943
// Try locating the manifest tool
29422944
if (VS_TOOLSET) {
2943-
PATH_PROG('mt', WshShell.Environment("Process").Item("PATH"));
2945+
if (!PATH_PROG('mt', WshShell.Environment("Process").Item("PATH"))) {
2946+
ERROR('mt is required')
2947+
}
29442948
}
29452949
}
29462950
/* Get compiler if the toolset is supported */

0 commit comments

Comments
 (0)