Skip to content

Commit a4c69b7

Browse files
aamcommit-bot@chromium.org
authored andcommitted
Pass platform sdk as uri to frontend server.
This fixes frontend_server.dart.snapshot creation on Windows. Change-Id: I8dca91ed37ad7c83e951b6fa6c7a34070a35b666 Reviewed-on: https://dart-review.googlesource.com/45060 Commit-Queue: Alexander Aprelev <[email protected]> Reviewed-by: Siva Annamalai <[email protected]>
1 parent 1d159e7 commit a4c69b7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pkg/vm/lib/frontend_server.dart

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,12 +439,15 @@ Future<int> starter(
439439
Directory.systemTemp.createTempSync('train_frontend_server');
440440
try {
441441
final String outputTrainingDill = path.join(temp.path, 'app.dill');
442-
options = argParser.parse(<String>[
442+
final List<String> args = <String>[
443443
'--incremental',
444444
'--sdk-root=$sdkRoot',
445-
'--platform=$platform',
446-
'--output-dill=$outputTrainingDill'
447-
]);
445+
'--output-dill=$outputTrainingDill',
446+
];
447+
if (platform != null) {
448+
args.add('--platform=${new Uri.file(platform)}');
449+
}
450+
options = argParser.parse(args);
448451
compiler ??=
449452
new FrontendCompiler(output, printerFactory: binaryPrinterFactory);
450453

0 commit comments

Comments
 (0)