mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
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.
This commit is contained in:
parent
31e78f1e7f
commit
a6c963032e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user