Update web_ui/** to explicitly pass --local-engine-host to the flutter tool. (flutter/engine#44613)
Partial work towards https://github.com/flutter/flutter/issues/132245.
This commit is contained in:
@@ -268,29 +268,6 @@ class ProcessOutput {
|
||||
final String stderr;
|
||||
}
|
||||
|
||||
Future<void> runFlutter(
|
||||
String workingDirectory,
|
||||
List<String> arguments, {
|
||||
bool useSystemFlutter = false,
|
||||
}) async {
|
||||
final String executable =
|
||||
useSystemFlutter ? 'flutter' : environment.flutterCommand.path;
|
||||
arguments.add('--local-engine=host_debug_unopt');
|
||||
final int exitCode = await runProcess(
|
||||
executable,
|
||||
arguments,
|
||||
workingDirectory: workingDirectory,
|
||||
);
|
||||
|
||||
if (exitCode != 0) {
|
||||
throw ToolExit(
|
||||
'ERROR: Failed to run $executable with '
|
||||
'arguments $arguments. Exited with exit code $exitCode',
|
||||
exitCode: exitCode,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// An exception related to an attempt to spawn a sub-process.
|
||||
@immutable
|
||||
class ProcessException implements Exception {
|
||||
|
||||
Reference in New Issue
Block a user