diff options
author | Jose <jose@zeroc.com> | 2017-04-12 12:19:02 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-04-12 12:19:02 +0200 |
commit | ee8f63b9aba4702e7ab11a7eac7044a40c93509c (patch) | |
tree | a62cb58cc075517c828d7b9779aad7021fa62893 /js/gulpfile.js | |
parent | Update C# entries in CHANGELOG-3.7.md (diff) | |
download | ice-ee8f63b9aba4702e7ab11a7eac7044a40c93509c.tar.bz2 ice-ee8f63b9aba4702e7ab11a7eac7044a40c93509c.tar.xz ice-ee8f63b9aba4702e7ab11a7eac7044a40c93509c.zip |
Windows build fix (use lowercase comparison for config and platform parameters)
Diffstat (limited to 'js/gulpfile.js')
-rw-r--r-- | js/gulpfile.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/gulpfile.js b/js/gulpfile.js index 57c3ecb4e54..342b4a513fb 100644 --- a/js/gulpfile.js +++ b/js/gulpfile.js @@ -57,13 +57,13 @@ function slice2js(options) { var opts = options || {}; if(!useBinDist && process.platform == "win32" && !opts.exe) { - if(!platform || (platform != "Win32" && platform != "x64")) + if(!platform || (platform.toLowerCase() != "win32" && platform.toLowerCase() != "x64")) { console.log("Error: CPP_PLATFORM environment variable must be set to `Win32' or `x64', in order to locate slice2js.exe"); process.exit(1); } - if(!configuration || (configuration != "Debug" && configuration != "Release")) + if(!configuration || (configuration.toLowerCase() != "debug" && configuration.toLowerCase() != "release")) { console.log("Error: CPP_CONFIGURATION environment variable must be set to `Debug' or `Release', in order to locate slice2js.exe"); process.exit(1); |