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

Side by Side Diff: pkg/front_end/lib/src/fasta/compiler_command_line.dart

Issue 2919003003: Reapply "Use backend targets to run Kernel transformations in Fasta" (Closed)
Patch Set: Follow dartanalyzer suggestions Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library fasta.compiler_command_line; 5 library fasta.compiler_command_line;
6 6
7 import 'dart:io' show exit; 7 import 'dart:io' show exit;
8 8
9 import 'command_line.dart' show CommandLine, argumentError; 9 import 'command_line.dart' show CommandLine, argumentError;
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 bool get errorsAreFatal => fatal.contains("errors"); 85 bool get errorsAreFatal => fatal.contains("errors");
86 86
87 bool get warningsAreFatal => fatal.contains("warnings"); 87 bool get warningsAreFatal => fatal.contains("warnings");
88 88
89 bool get nitsAreFatal => fatal.contains("nits"); 89 bool get nitsAreFatal => fatal.contains("nits");
90 90
91 bool get strongMode => options.containsKey("--strong-mode"); 91 bool get strongMode => options.containsKey("--strong-mode");
92 92
93 String get target { 93 String get target {
94 return options["-t"] ?? options["--target"] ?? "vm"; 94 return options["-t"] ?? options["--target"] ?? "vm_fasta";
95 } 95 }
96 96
97 static dynamic withGlobalOptions(String programName, List<String> arguments, 97 static dynamic withGlobalOptions(String programName, List<String> arguments,
98 dynamic f(CompilerContext context)) { 98 dynamic f(CompilerContext context)) {
99 return CompilerContext.withGlobalOptions( 99 return CompilerContext.withGlobalOptions(
100 new CompilerCommandLine(programName, arguments), f); 100 new CompilerCommandLine(programName, arguments), f);
101 } 101 }
102 102
103 static CompilerCommandLine forRootContext() { 103 static CompilerCommandLine forRootContext() {
104 return new CompilerCommandLine("", [""]); 104 return new CompilerCommandLine("", [""]);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 Compile the SDK from scratch instead of reading it from 'platform.dill'. 191 Compile the SDK from scratch instead of reading it from 'platform.dill'.
192 192
193 --fatal=errors 193 --fatal=errors
194 --fatal=warnings 194 --fatal=warnings
195 --fatal=nits 195 --fatal=nits
196 Makes messages of the given kinds fatal, that is, immediately stop the 196 Makes messages of the given kinds fatal, that is, immediately stop the
197 compiler with a non-zero exit-code. In --verbose mode, also display an 197 compiler with a non-zero exit-code. In --verbose mode, also display an
198 internal stack trace from the compiler. Multiple kinds can be separated by 198 internal stack trace from the compiler. Multiple kinds can be separated by
199 commas, for example, --fatal=errors,warnings. 199 commas, for example, --fatal=errors,warnings.
200 """; 200 """;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698