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

Unified Diff: lib/compiler/implementation/dart2js.dart

Issue 10414024: Add a flag to control the backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Last version Created 8 years, 7 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 | « lib/compiler/implementation/compiler.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/dart2js.dart
diff --git a/lib/compiler/implementation/dart2js.dart b/lib/compiler/implementation/dart2js.dart
index c455e13dfdfce796f3c40ddbd5f75f10c1bed869..9743324b73c9e283b05862d8fb076a336772f241 100644
--- a/lib/compiler/implementation/dart2js.dart
+++ b/lib/compiler/implementation/dart2js.dart
@@ -66,6 +66,7 @@ void compile(List<String> argv) {
List<OptionHandler> handlers = <OptionHandler>[
new OptionHandler('--throw-on-error', (_) => throwOnError = true),
new OptionHandler('--suppress-warnings', (_) => showWarnings = false),
+ new OptionHandler('--output-type=dart|--output-type=js', passThrough),
new OptionHandler('--verbose|-v', (_) => verbose = true),
new OptionHandler('--library-root=.+', (String argument) {
String path = nativeToUriPath(extractParameter(argument));
@@ -238,6 +239,10 @@ Supported options:
-v, --verbose
Display verbose information.
+ --output-type=<value>
+ Output either JavaScript code (if value is 'js') or Dart code (if value is 'dart').
ahe 2012/05/22 10:36:07 FYI: long line (please stay below 80 characters in
+ Default value is 'js'.
+
--suppress-warnings
Do not display any warnings.
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698