Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(759)

Unified Diff: compiler/java/com/google/dart/compiler/CommandLineOptions.java

Issue 9447094: Backout change in test.dart from -batch to --batch. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698