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

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

Issue 3002053002: Make package:kernel's verifier pass fasta-compiled code, make fasta not return exitcode 1 for warni…
Patch Set: Created 3 years, 4 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
« no previous file with comments | « no previous file | pkg/kernel/lib/verifier.dart » ('j') | pkg/kernel/lib/verifier.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'package:kernel/target/targets.dart' 9 import 'package:kernel/target/targets.dart'
10 show Target, getTarget, TargetFlags, targets; 10 show Target, getTarget, TargetFlags, targets;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 ..packagesFileUri = cl.packages 153 ..packagesFileUri = cl.packages
154 ..strongMode = cl.strongMode 154 ..strongMode = cl.strongMode
155 ..target = cl.target 155 ..target = cl.target
156 ..throwOnErrors = cl.errorsAreFatal 156 ..throwOnErrors = cl.errorsAreFatal
157 ..throwOnWarnings = cl.warningsAreFatal 157 ..throwOnWarnings = cl.warningsAreFatal
158 ..throwOnNits = cl.nitsAreFatal 158 ..throwOnNits = cl.nitsAreFatal
159 ..embedSourceText = !cl.excludeSource 159 ..embedSourceText = !cl.excludeSource
160 // All command-line tools take only a single entry point and chase 160 // All command-line tools take only a single entry point and chase
161 // dependencies, and provide a non-zero exit code when errors are found. 161 // dependencies, and provide a non-zero exit code when errors are found.
162 ..chaseDependencies = true 162 ..chaseDependencies = true
163 ..setExitCodeOnProblem = true 163 ..setExitCodeOnProblem = false
Siggi Cherem (dart-lang) 2017/08/21 20:01:51 since the default is false, let's simply delete th
164 ..debugDump = cl.dumpIr 164 ..debugDump = cl.dumpIr
165 ..verbose = cl.verbose 165 ..verbose = cl.verbose
166 ..verify = cl.verify; 166 ..verify = cl.verify;
167 167
168 var inputs = <Uri>[]; 168 var inputs = <Uri>[];
169 if (areRestArgumentsInputs) { 169 if (areRestArgumentsInputs) {
170 inputs = cl.arguments.map(Uri.base.resolve).toList(); 170 inputs = cl.arguments.map(Uri.base.resolve).toList();
171 } 171 }
172 var pOptions = new ProcessedOptions(options, false, inputs, cl.output); 172 var pOptions = new ProcessedOptions(options, false, inputs, cl.output);
173 return CompilerContext.runWithOptions(pOptions, (c) => f(c, cl.arguments)); 173 return CompilerContext.runWithOptions(pOptions, (c) => f(c, cl.arguments));
(...skipping 28 matching lines...) Expand all
202 StringBuffer sb = new StringBuffer(basicUsage); 202 StringBuffer sb = new StringBuffer(basicUsage);
203 if (summary != null) { 203 if (summary != null) {
204 sb.writeln(); 204 sb.writeln();
205 sb.writeln(summary); 205 sb.writeln(summary);
206 sb.writeln(); 206 sb.writeln();
207 } 207 }
208 sb.write(options); 208 sb.write(options);
209 // TODO(ahe): Don't use [templateUnspecified]. 209 // TODO(ahe): Don't use [templateUnspecified].
210 return templateUnspecified.withArguments("$sb"); 210 return templateUnspecified.withArguments("$sb");
211 } 211 }
OLDNEW
« no previous file with comments | « no previous file | pkg/kernel/lib/verifier.dart » ('j') | pkg/kernel/lib/verifier.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698