Merge pull request #1814 from jason-simmons/mojo_toolchain_path
Try to locate the toolchain in the output layout used by the Flutter …
This commit is contained in:
commit
cdbc942753
@ -32,6 +32,9 @@ class Compiler {
|
|||||||
Future<String> _getCompilerPath(BuildConfiguration config) async {
|
Future<String> _getCompilerPath(BuildConfiguration config) async {
|
||||||
if (config.type != BuildType.prebuilt) {
|
if (config.type != BuildType.prebuilt) {
|
||||||
String compilerPath = path.join(config.buildDir, 'clang_x64', 'sky_snapshot');
|
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))
|
if (FileSystemEntity.isFileSync(compilerPath))
|
||||||
return compilerPath;
|
return compilerPath;
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user