| 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 3a4dea3c931e29e0d8fc695df1360648e11d132c..cc5d66d0c8461e8e288ac46b391cf84d2acce8ff 100644
|
| --- a/compiler/java/com/google/dart/compiler/CommandLineOptions.java
|
| +++ b/compiler/java/com/google/dart/compiler/CommandLineOptions.java
|
| @@ -79,8 +79,7 @@ public class CommandLineOptions {
|
| usage = "Enable incremental compilation")
|
| private boolean incremental = false;
|
|
|
| - // TODO(zundel): -out is for backward compatibility until scripts are updated
|
| - @Option(name = "--work", aliases = { "-out" },
|
| + @Option(name = "--work",
|
| usage = "Directory to receive compiler output\n for future incremental builds")
|
| private File workDirectory = new File("out");
|
|
|
| @@ -104,6 +103,17 @@ public class CommandLineOptions {
|
| usage = "Treat non-type warnings as fatal")
|
| private boolean warningsAreFatal = false;
|
|
|
| + @Option(name = "--implementation-name",
|
| + usage = "Implementation to analyze (e.g. dartium, vm, frog, leg)")
|
| + private String implementationName = "dartium";
|
| +
|
| + @Option(name = "--dart-sdk",
|
| + usage = "Path to dart sdk")
|
| + private String dartSdkPath = "../";
|
| +
|
| + @Option(name = "--show-sdk-warnings", usage = "show warnings from SDK source")
|
| + private boolean showSdkWarnings = false;
|
| +
|
| @Argument
|
| private final List<String> sourceFiles = new ArrayList<String>();
|
|
|
| @@ -121,6 +131,21 @@ public class CommandLineOptions {
|
| return jvmMetricDetail + ":" + jvmMetricFormat + ":" + jvmMetricType;
|
| }
|
|
|
| + public String getImplementationName() {
|
| + return implementationName;
|
| + }
|
| +
|
| + public String getDartSdkPath() {
|
| + return dartSdkPath;
|
| + }
|
| +
|
| + /**
|
| + * Returns whether warnings from SDK files should be suppressed.
|
| + */
|
| + public boolean suppressSdkWarnings() {
|
| + return !showSdkWarnings;
|
| + }
|
| +
|
| /**
|
| * Returns the list of files passed to the compiler.
|
| */
|
|
|