com php-src: Die hard if mc.exe or mt.exe not found: win32/build/confutils.js
| From: | Anatol Belski | Date: | Mon, 11 Mar 2019 19:41:45 +0000 |
| Subject: | com php-src: Die hard if mc.exe or mt.exe not found: win32/build/confutils.js | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-105090@lists.php.net to get a copy of this message | ||
Commit: 6814ba11bc8c2638b7345aaea176fc7c678aa07f
Author: Anatol Belski <ab@php.net> Mon, 11 Mar 2019 20:41:45 +0100
Parents: e93259bb23500e26a7b0317cde9ad5398eec074e
Branches: PHP-7.2 PHP-7.3 PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6814ba11bc8c2638b7345aaea176fc7c678aa07f
Log:
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.
Changed paths:
M win32/build/confutils.js
Diff:
diff --git a/win32/build/confutils.js b/win32/build/confutils.js
index a74812e...d943453 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 */