Pass --disable-dart-dev in more places (#62217)

This commit is contained in:
Zachary Anderson 2020-07-24 13:37:08 -07:00 committed by GitHub
parent e64fe11542
commit 5e0ba2290f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View file

@ -35,9 +35,9 @@ Future<Map<String, dynamic>> runTask(
final Process runner = await startProcess(
dartBin,
<String>[
'--disable-dart-dev',
'--enable-vm-service=0', // zero causes the system to choose a free port
'--no-pause-isolates-on-exit',
'--disable-dart-dev',
if (localEngine != null) '-DlocalEngine=$localEngine',
if (localEngineSrcPath != null) '-DlocalEngineSrcPath=$localEngineSrcPath',
taskExecutable,

View file

@ -469,7 +469,7 @@ String get dartBin =>
String get pubBin =>
path.join(flutterDirectory.path, 'bin', 'cache', 'dart-sdk', 'bin', 'pub');
Future<int> dart(List<String> args) => exec(dartBin, args);
Future<int> dart(List<String> args) => exec(dartBin, <String>['--disable-dart-dev', ...args]);
/// Returns a future that completes with a path suitable for JAVA_HOME
/// or with null, if Java cannot be found.

View file

@ -262,6 +262,7 @@ class IconTreeShaker {
) async {
final List<String> cmd = <String>[
dart.path,
'--disable-dart-dev',
constFinder.path,
'--kernel-file', appDill.path,
'--class-library-uri', 'package:flutter/src/widgets/icon_data.dart',

View file

@ -36,6 +36,7 @@ const String relativePath = 'fonts/MaterialIcons-Regular.ttf';
List<String> getConstFinderArgs(String appDillPath) => <String>[
dartPath,
'--disable-dart-dev',
constFinderPath,
'--kernel-file', appDillPath,
'--class-library-uri', 'package:flutter/src/widgets/icon_data.dart',