Commit a6c96303 authored by Alexander Aprelev's avatar Alexander Aprelev

Fix gen_snapshot name, path for Windows.

Executables have '.exe' extension on Windows. We do have to specify extension for gen_snapshot since when running with local engine, we are looking for that exact file before launching it.
parent 31e78f1e
......@@ -33,7 +33,7 @@ String _artifactToFileName(Artifact artifact) {
case Artifact.dartVmEntryPointsTxt:
return 'dart_vm_entry_points.txt';
case Artifact.genSnapshot:
return 'gen_snapshot';
return platform.isWindows ? 'gen_snapshot.exe' : 'gen_snapshot';
case Artifact.flutterTester:
return 'flutter_tester';
case Artifact.snapshotDart:
......@@ -262,7 +262,7 @@ class LocalEngineArtifacts extends Artifacts {
}
String _genSnapshotPath() {
const List<String> clangDirs = const <String>['clang_x86', 'clang_x64', 'clang_i386'];
const List<String> clangDirs = const <String>['.', 'clang_x86', 'clang_x64', 'clang_i386'];
final String genSnapshotName = _artifactToFileName(Artifact.genSnapshot);
for (String clangDir in clangDirs) {
final String genSnapshotPath = fs.path.join(engineOutPath, clangDir, genSnapshotName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment