Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Commit ccf86fe

Browse files
committed
Speed up compiler compilation for Java 1.7
Manually tested on Mac, Win, Linux platforms.
1 parent 2267af1 commit ccf86fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ClosureCompiler.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@
156156
delete options["js"];
157157
delete options["js_output_file"];
158158

159-
var args = '-client -jar "'+__dirname+'/compiler/compiler.jar"'; // -d32 does not work on 64bit
159+
// -XX:+TieredCompilation speeds up compilation for Java 1.7.
160+
// Previous -d32 was for Java 1.6 only.
161+
// Compiler now requires Java 1.7 and this flag does not need detection.
162+
var args = '-XX:+TieredCompilation -jar "'+__dirname+'/compiler/compiler.jar"';
160163

161164
// Source files
162165
if (!(files instanceof Array)) {

0 commit comments

Comments
 (0)