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

Side by Side Diff: pkg/compiler/tool/generate_kernel.dart

Issue 2849183002: Revert "Add support for building patched_sdk and platform.dill for dart2js:" (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/kernel/fasta_support.dart ('k') | pkg/front_end/lib/src/fasta/fasta.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
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.
4
5 /// Helper to run fasta with the right target configuration to build dart2js
6 /// applications using the dart2js platform libraries.
7 // TODO(sigmund): delete this file once we can configure fasta directly on the
8 // command line.
9 library compiler.tool.generate_kernel;
10
11 import 'dart:io' show exitCode;
12
13 import 'package:front_end/src/fasta/compiler_command_line.dart'
14 show CompilerCommandLine;
15 import 'package:front_end/src/fasta/compiler_context.dart' show CompilerContext;
16 import 'package:front_end/src/fasta/errors.dart' show InputError;
17 import 'package:front_end/src/fasta/ticker.dart' show Ticker;
18 import 'package:compiler/src/kernel/fasta_support.dart' show Dart2jsCompileTask;
19
20 main(List<String> arguments) async {
21 try {
22 await CompilerCommandLine.withGlobalOptions("generate_kernel", arguments,
23 (CompilerContext c) async {
24 if (c.options.verbose) {
25 print("Compiling directly to Kernel: ${arguments.join(' ')}");
26 }
27 var task =
28 new Dart2jsCompileTask(c, new Ticker(isVerbose: c.options.verbose));
29 await task.compile();
30 });
31 } on InputError catch (e) {
32 exitCode = 1;
33 print(e.format());
34 return null;
35 }
36 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/fasta_support.dart ('k') | pkg/front_end/lib/src/fasta/fasta.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698