File tree 1 file changed +7
-4
lines changed
packages/flutter_tools/lib/src/build_system/targets
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -208,16 +208,19 @@ class Dart2JSTarget extends Target {
208
208
'--no-source-maps' ,
209
209
];
210
210
211
- // Run the dart2js compilation in two stages, so that icon tree shaking can
212
- // parse the kernel file for web builds.
213
- final ProcessResult kernelResult = await globals.processManager.run (< String > [
211
+ final List <String > compilationArgs = < String > [
214
212
...sharedCommandOptions,
215
213
'-o' ,
216
214
environment.buildDir.childFile ('app.dill' ).path,
217
215
'--packages=.dart_tool/package_config.json' ,
218
216
'--cfe-only' ,
219
217
environment.buildDir.childFile ('main.dart' ).path, // dartfile
220
- ]);
218
+ ];
219
+ globals.printTrace ('compiling dart code to kernel with command "${compilationArgs .join (' ' )}"' );
220
+
221
+ // Run the dart2js compilation in two stages, so that icon tree shaking can
222
+ // parse the kernel file for web builds.
223
+ final ProcessResult kernelResult = await globals.processManager.run (compilationArgs);
221
224
if (kernelResult.exitCode != 0 ) {
222
225
throw Exception (_collectOutput (kernelResult));
223
226
}
You can’t perform that action at this time.
0 commit comments