scons: Add a mechanism to accumulate warnings to reprint at the end.
authorGabe Black <gabe.black@gmail.com>
Thu, 26 Mar 2020 11:41:39 +0000 (04:41 -0700)
committerGabe Black <gabeblack@google.com>
Fri, 27 Mar 2020 08:44:28 +0000 (08:44 +0000)
commit3d572a49b8edb162515fcffecb9cc2f5092d7803
tree59e58721251521ae5e9d3da5a9f1a95ffd6c5b84
parent47579e693b43690fff5da8ec47c862f6c41cedf6
scons: Add a mechanism to accumulate warnings to reprint at the end.

When building gem5, it's possible for warnings printed early in the
build to be quickly wisked away in a see of compile lines, never to be
seen again (or driven off the end of the scrollback buffer).

To avoid those messages getting lost or ignored, this change adds a
mechanism to aggregate them into a list so that they can be summarized
at the end of the build, successful or not.

Change-Id: Ie13320717698fcbcd3a8f8d1c062467e8d6d2914
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27129
Tested-by: Gem5 Cloud Project GCB service account <345032938727@cloudbuild.gserviceaccount.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Gabe Black <gabeblack@google.com>
site_scons/gem5_scons/__init__.py