summaryrefslogtreecommitdiff
path: root/win32/build/confutils.js
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2019-03-11 20:41:45 +0100
committerAnatol Belski <ab@php.net>2019-03-11 20:41:45 +0100
commit6814ba11bc8c2638b7345aaea176fc7c678aa07f (patch)
treed4123adbbdc8ece48781fefd01a5ba413a72f82e /win32/build/confutils.js
parente93259bb23500e26a7b0317cde9ad5398eec074e (diff)
downloadphp-git-6814ba11bc8c2638b7345aaea176fc7c678aa07f.tar.gz
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.
Diffstat (limited to 'win32/build/confutils.js')
-rw-r--r--win32/build/confutils.js8
1 files 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 */