Try to locate the toolchain in the output layout used by the Flutter Linux target

This commit is contained in:
Jason Simmons
2016-02-12 11:09:22 -08:00
parent f8f50ae713
commit 42be77b7a9

View File

@@ -32,6 +32,9 @@ class Compiler {
Future<String> _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;