Unverified Commit 24b3c384 authored by Christopher Fujino's avatar Christopher Fujino Committed by GitHub

add debug trace when compiling dart2js (#116238)

parent c461f4f6
......@@ -208,16 +208,19 @@ class Dart2JSTarget extends Target {
'--no-source-maps',
];
// Run the dart2js compilation in two stages, so that icon tree shaking can
// parse the kernel file for web builds.
final ProcessResult kernelResult = await globals.processManager.run(<String>[
final List<String> compilationArgs = <String>[
...sharedCommandOptions,
'-o',
environment.buildDir.childFile('app.dill').path,
'--packages=.dart_tool/package_config.json',
'--cfe-only',
environment.buildDir.childFile('main.dart').path, // dartfile
]);
];
globals.printTrace('compiling dart code to kernel with command "${compilationArgs.join(' ')}"');
// Run the dart2js compilation in two stages, so that icon tree shaking can
// parse the kernel file for web builds.
final ProcessResult kernelResult = await globals.processManager.run(compilationArgs);
if (kernelResult.exitCode != 0) {
throw Exception(_collectOutput(kernelResult));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment