Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 2c7aa68

Browse files
icholygkalpak
authored andcommitted
fix(grunt-utils): correctly detect java 32bit support
Closes #16605
1 parent 840b5f0 commit 2c7aa68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grunt/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ module.exports = {
221221
//returns the 32-bit mode force flags for java compiler if supported, this makes the build much faster
222222
java32flags: function() {
223223
if (process.platform === 'win32') return '';
224-
if (shell.exec('java -version -d32 2>&1', {silent: true}).code !== 0) return '';
224+
if (shell.exec('java -d32 -version 2>&1', {silent: true}).code !== 0) return '';
225225
return ' -d32 -client';
226226
},
227227

0 commit comments

Comments
 (0)