| Index: compiler/java/com/google/dart/compiler/CommandLineOptions.java
|
| diff --git a/compiler/java/com/google/dart/compiler/CommandLineOptions.java b/compiler/java/com/google/dart/compiler/CommandLineOptions.java
|
| index c407e40a38f9207f742fa268141d0c365629edad..068ed9d2176c355afaf92c9a3284517e5632472c 100644
|
| --- a/compiler/java/com/google/dart/compiler/CommandLineOptions.java
|
| +++ b/compiler/java/com/google/dart/compiler/CommandLineOptions.java
|
| @@ -88,9 +88,15 @@ public class CommandLineOptions {
|
| + " jit: show jit stats")
|
| private String jvmMetricType = "all";
|
|
|
| - @Option(name = "--noincremental", aliases = { "-noincremental" },
|
| - usage = "Disable incremental compilation")
|
| - private boolean noincremental = false;
|
| + // leave the command line flag for legacy purposes.
|
| + @SuppressWarnings("unused")
|
| + @Option(name = "--noincremental",
|
| + usage = "Disable incremental compilation (default)")
|
| + private boolean noincremental = true; // not used, just a placeholder for arg parsing
|
| +
|
| + @Option(name = "--incremental",
|
| + usage = "Enable incremental compilation")
|
| + private boolean incremental = false;
|
|
|
| @Option(name = "--out",
|
| usage = "Write generated JavaScript to a file")
|
| @@ -167,7 +173,7 @@ public class CommandLineOptions {
|
| * Returns whether the compiler should attempt to incrementally recompile.
|
| */
|
| public boolean buildIncrementally() {
|
| - return !noincremental;
|
| + return incremental;
|
| }
|
|
|
| public boolean shouldBatch() {
|
|
|