Move host build check until it's actually used. (#11926)
* Move host build check until it's actually used * Elaborate diagnostic message
This commit is contained in:
committed by
GitHub
parent
7ee0b6a574
commit
59bc0a0fce
@@ -336,9 +336,6 @@ class FlutterCommandRunner extends CommandRunner<Null> {
|
||||
|
||||
final String hostLocalEngine = 'host_' + localEngine.substring(localEngine.indexOf('_') + 1);
|
||||
final String engineHostBuildPath = fs.path.normalize(fs.path.join(enginePath, 'out', hostLocalEngine));
|
||||
if (!fs.isDirectorySync(engineHostBuildPath)) {
|
||||
throwToolExit('No Flutter host engine build found at $engineHostBuildPath.', exitCode: 2);
|
||||
}
|
||||
|
||||
return new EngineBuildPaths(targetEngine: engineBuildPath, hostEngine: engineHostBuildPath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user