From 2c7aa68ca8c60663529e4f423bc73e448c3441b1 Mon Sep 17 00:00:00 2001 From: Ilia Choly Date: Wed, 20 Jun 2018 13:19:03 -0400 Subject: [PATCH] fix(grunt-utils): correctly detect java 32bit support Closes #16605 --- lib/grunt/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/grunt/utils.js b/lib/grunt/utils.js index 73e8b1efc790..06202d91bb70 100644 --- a/lib/grunt/utils.js +++ b/lib/grunt/utils.js @@ -221,7 +221,7 @@ module.exports = { //returns the 32-bit mode force flags for java compiler if supported, this makes the build much faster java32flags: function() { if (process.platform === 'win32') return ''; - if (shell.exec('java -version -d32 2>&1', {silent: true}).code !== 0) return ''; + if (shell.exec('java -d32 -version 2>&1', {silent: true}).code !== 0) return ''; return ' -d32 -client'; },