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:
Matan Lurey
2023-08-14 14:09:22 -07:00
committed by GitHub
parent 4c8bde6166
commit ee235383f8

View File

@@ -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 {