@@ -45,6 +45,7 @@ class BuildRunnerCommandLine {
45
45
final String ? config;
46
46
final BuiltList <String >? defines;
47
47
final BuiltList <String >? enableExperiments;
48
+ final BuiltList <String >? jitVmArgs;
48
49
final String ? hostname;
49
50
final bool ? liveReload;
50
51
final String ? logPerformance;
@@ -67,6 +68,7 @@ class BuildRunnerCommandLine {
67
68
config = argResults.stringNamed (configOption),
68
69
defines = argResults.listNamed (defineOption),
69
70
enableExperiments = argResults.listNamed (enableExperimentOption),
71
+ jitVmArgs = argResults.listNamed (dartJitVmArgOption),
70
72
hostname = argResults.stringNamed (hostnameOption),
71
73
liveReload = argResults.boolNamed (liveReloadOption),
72
74
logPerformance = argResults.stringNamed (logPerformanceOption),
@@ -121,6 +123,7 @@ const configOption = 'config';
121
123
const defineOption = 'define' ;
122
124
const deleteFilesByDefaultOption = 'delete-conflicting-outputs' ;
123
125
const enableExperimentOption = 'enable-experiment' ;
126
+ const dartJitVmArgOption = 'dart-jit-vm-arg' ;
124
127
const hostnameOption = 'hostname' ;
125
128
const liveReloadOption = 'live-reload' ;
126
129
const logPerformanceOption = 'log-performance' ;
@@ -252,6 +255,15 @@ class _Build extends Command<BuildRunnerCommandLine> {
252
255
..addMultiOption (
253
256
enableExperimentOption,
254
257
help: 'A list of dart language experiments to enable.' ,
258
+ )
259
+ ..addMultiOption (
260
+ dartJitVmArgOption,
261
+ help:
262
+ 'Flags to pass to `dart run` when launching the inner build '
263
+ 'script\n .'
264
+ 'For example, `--dart-jit-vm-arg "--observe" '
265
+ '--dart-jit-vm-arg "--pause-isolates-on-start"` would start the '
266
+ 'build script with a debugger attached to it.' ,
255
267
);
256
268
}
257
269
0 commit comments