mirror of
https://github.com/flutter/flutter
synced 2024-09-20 00:32:02 +00:00
Pass --disable-dart-dev in more places (#62217)
This commit is contained in:
parent
e64fe11542
commit
5e0ba2290f
|
@ -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,
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue