From 6814ba11bc8c2638b7345aaea176fc7c678aa07f Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Mon, 11 Mar 2019 20:41:45 +0100 Subject: [PATCH] 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. --- win32/build/confutils.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/win32/build/confutils.js b/win32/build/confutils.js index a74812e7f4..d943453bf8 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -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 */ -- 2.40.0