summaryrefslogtreecommitdiff
path: root/js/gulpfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/gulpfile.js')
-rw-r--r--js/gulpfile.js4
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);