diff options
author | Dan Willemsen <dwillemsen@google.com> | 2019-01-02 12:50:49 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2019-01-02 12:50:49 -0800 |
commit | 7f30c076d5fce0dd969537809d8d91797fc9c197 (patch) | |
tree | b4bd858a3f4332953cc5028929394224f9ce6f58 /ui | |
parent | 186c771cb4d0ba556ab0051c6d44e502926f614e (diff) | |
download | build_soong-7f30c076d5fce0dd969537809d8d91797fc9c197.tar.gz build_soong-7f30c076d5fce0dd969537809d8d91797fc9c197.tar.bz2 build_soong-7f30c076d5fce0dd969537809d8d91797fc9c197.zip |
Print a status message when starting ninja
This way we don't appear hung at:
No need to regenerate ninja file
Change-Id: I8dbdaa2c1b1c5a6a73187d0e6061f363b62e10c9
Fixes: 122251150
Test: m nothing
Diffstat (limited to 'ui')
-rw-r--r-- | ui/build/ninja.go | 1 | ||||
-rw-r--r-- | ui/status/status.go | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ui/build/ninja.go b/ui/build/ninja.go index c8f19d10..ab15e863 100644 --- a/ui/build/ninja.go +++ b/ui/build/ninja.go @@ -97,6 +97,7 @@ func runNinja(ctx Context, config Config) { } }() + ctx.Status.Status("Starting ninja...") cmd.RunAndPrintOrFatal() } diff --git a/ui/status/status.go b/ui/status/status.go index c851d7f5..46ec72e8 100644 --- a/ui/status/status.go +++ b/ui/status/status.go @@ -260,6 +260,10 @@ func (s *Status) message(level MsgLevel, msg string) { } } +func (s *Status) Status(msg string) { + s.message(StatusLvl, msg) +} + type toolStatus struct { status *Status |