File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,9 @@ actually running those examples.
6
6
7
7
## Setup
8
8
9
- You may need to edit the ` pubspec.yaml ` file to run these examples. It requires
10
- a path dependency on the SDK packages to work (until
11
- https://github.com/dart-lang/pub/issues/3336 is resolved). The current paths
12
- assume the dart sdk is in a sibling directory to the language repo, in a
13
- directory called ` dart-lang-sdk ` .
14
-
15
- Your SDK will also need to be very recent, in particular it must include
16
- commit 54e773.
9
+ Your SDK will need to match roughly the commit pinned in the pubspec.yaml file
10
+ of this package (see the ` ref ` lines). Otherwise you will get a kernel version
11
+ mismatch.
17
12
18
13
## Benchmarks
19
14
Original file line number Diff line number Diff line change 1
1
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2
2
// for details. All rights reserved. Use of this source code is governed by a
3
3
// BSD-style license that can be found in the LICENSE file.
4
- //
5
- // @dart=2.9
6
4
7
5
import 'dart:io' ;
8
6
import 'dart:isolate' ;
@@ -46,7 +44,7 @@ void main() async {
46
44
File (bootstrapFile.uri.resolve ('bootstrap.dart.dill' ).toFilePath ());
47
45
48
46
var feAnalyzerSharedRoot = (await Isolate .resolvePackageUri (
49
- Uri .parse ('package:_fe_analyzer_shared/fake.dart' )))
47
+ Uri .parse ('package:_fe_analyzer_shared/fake.dart' )))!
50
48
.resolve ('./' );
51
49
52
50
log ('Compiling macro program to kernel (${bootstrapKernelFile .path })' );
@@ -90,7 +88,7 @@ void main() async {
90
88
'--output' ,
91
89
output.path,
92
90
'--source' ,
93
- Platform .script .resolve ('user_main.dart' ).toFilePath (),
91
+ Uri . base .resolve ('bin/ user_main.dart' ).toFilePath (),
94
92
'--packages-file=.dart_tool/package_config.json' ,
95
93
'--enable-experiment=macros' ,
96
94
'--precompiled-macro-format=kernel' ,
You can’t perform that action at this time.
0 commit comments