Open matanlurey opened 1 month ago
Summary: The user requests the addition of depfile
output flags to the dart compile
command, similar to the functionality available in internal Dart SDK binaries like gen_snapshot
. This would allow for more flexible build systems and potentially reduce reliance on internal binaries.
Ben to add some context to this request as well: https://github.com/flutter/flutter/issues/155769. Thanks!
The Dart SDK internal binaries, such as
gen_snapshot
support adepsfile
output:https://github.com/dart-lang/sdk/blob/a3c6d0569702e8cd5da693f0235b79dbdd38cfa7/runtime/bin/main_options.cc#L794
The Flutter tool, and Flutter engine, use this option to correctly rebuild from various build systems.
It would be nice to have this available in
dart compile
so that Dart SDK internal binaries are (less?) not needed.