Log the command line to soong.log when soong_ui starts

Change-Id: Ie39333e4771cddf4c828d5e3474e2e43001db807
Test: manual
This commit is contained in:
Joe Onorato 2023-07-14 16:32:53 -07:00
parent 4cf52f17c5
commit 010c6b67da

View file

@ -218,6 +218,11 @@ func main() {
trace.SetOutput(filepath.Join(logsDir, c.logsPrefix+"build.trace"))
log.Verbose("Command Line: ")
for i, arg := range os.Args {
log.Verbosef(" [%d] %s", i, arg)
}
defer func() {
stat.Finish()
criticalPath.WriteToMetrics(met)