diff --git a/packages/flutter_tools/lib/src/toolchain.dart b/packages/flutter_tools/lib/src/toolchain.dart index 1605a31358..1e5f52318a 100644 --- a/packages/flutter_tools/lib/src/toolchain.dart +++ b/packages/flutter_tools/lib/src/toolchain.dart @@ -32,6 +32,9 @@ class Compiler { Future _getCompilerPath(BuildConfiguration config) async { if (config.type != BuildType.prebuilt) { String compilerPath = path.join(config.buildDir, 'clang_x64', 'sky_snapshot'); + if (FileSystemEntity.isFileSync(compilerPath)) + return compilerPath; + compilerPath = path.join(config.buildDir, 'sky_snapshot'); if (FileSystemEntity.isFileSync(compilerPath)) return compilerPath; return null;