We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d159e7 commit a4c69b7Copy full SHA for a4c69b7
pkg/vm/lib/frontend_server.dart
@@ -439,12 +439,15 @@ Future<int> starter(
439
Directory.systemTemp.createTempSync('train_frontend_server');
440
try {
441
final String outputTrainingDill = path.join(temp.path, 'app.dill');
442
- options = argParser.parse(<String>[
+ final List<String> args = <String>[
443
'--incremental',
444
'--sdk-root=$sdkRoot',
445
- '--platform=$platform',
446
- '--output-dill=$outputTrainingDill'
447
- ]);
+ '--output-dill=$outputTrainingDill',
+ ];
+ if (platform != null) {
448
+ args.add('--platform=${new Uri.file(platform)}');
449
+ }
450
+ options = argParser.parse(args);
451
compiler ??=
452
new FrontendCompiler(output, printerFactory: binaryPrinterFactory);
453
0 commit comments