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

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

Issue 2880443005: Remove one more use of DillTarget.read that broke compiler/tool/generate_kernel. (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 | « no previous file | 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 library compiler.tool.generate_kernel_test;
6
7 import 'dart:io';
8 import 'generate_kernel.dart' as m;
9 import 'package:front_end/src/fasta/testing/patched_sdk_location.dart';
10
11 main() async {
12 Directory dir;
13 try {
14 dir = Directory.systemTemp.createTempSync('generate_kernel_test');
15 var file = dir.absolute.uri.resolve('hi.dart');
16 new File.fromUri(file).writeAsStringSync("main() => print('hello world');");
17 var vmSdk = await computePatchedSdk();
18 var platformUri = vmSdk.resolve('../patched_dart2js_sdk/platform.dill');
19 await m.main(['--platform=${platformUri.toFilePath()}', file.toFilePath()]);
20 } finally {
21 dir.deleteSync(recursive: true);
22 }
23 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/fasta.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698