From 734c1f3cd4847496d67292eacfefccff9903eed9 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Mon, 23 Oct 2017 19:01:14 +0200 Subject: [PATCH] Fail hard when re2c is not found or the version requirement not met With 7.2, the binary SDK supplies the minimal required version, thus no reason to fail later at the compilation time. --- win32/build/confutils.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/win32/build/confutils.js b/win32/build/confutils.js index bdcc406cf7c..7f3cfa395b3 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -2910,14 +2910,10 @@ function toolset_setup_project_tools() var intmin = (nm[1]-0)*10000 + (nm[2]-0)*100 + (nm[3]-0); if (intvers < intmin) { - STDOUT.WriteLine('WARNING: The minimum RE2C version requirement is ' + MINRE2C); - STDOUT.WriteLine('Parsers will not be generated. Upgrade your copy at http://sf.net/projects/re2c'); - DEFINE('RE2C', ''); - } else { - DEFINE('RE2C_FLAGS', ''); + ERROR('The minimum RE2C version requirement is ' + MINRE2C); } } else { - STDOUT.WriteLine('Parsers will not be regenerated'); + ERROR('re2c is required') } PATH_PROG('zip'); PATH_PROG('lemon');