scons: Add support for debug info compression.
authorGabe Black <gabe.black@gmail.com>
Fri, 5 Feb 2021 06:05:25 +0000 (22:05 -0800)
committerGabe Black <gabe.black@gmail.com>
Wed, 10 Feb 2021 09:05:53 +0000 (09:05 +0000)
commit79db0bacdda7b0c59de0eaadf970ba48aa37559d
tree073e98cba70bfb60c77b6fdb66ffbde498bbf748
parent0367539e9f1c75478749404d4604b8f5f71f6139
scons: Add support for debug info compression.

If supported this will compress the debug information in object files,
libraries, and binaries. This decreases the size of the build/ARM
directory from 11GB to 7.2GB.

Because the benefit of this mechanism depends on the performance and
capacity of the build machine's storage, it can be disabled with the
--no-compress-debug scons flag. For instance if your storage is very
fast, writing out a larger binary may take less time than compressing
that same number of bytes, plus the time to write out the smaller
file.

This feature seems to make our presubmit test machine run out of memory
when trying to build gem5, and so is disabled in the testing scripts.

Change-Id: I71919062d23742b7658918b0fa9c4d91d0521fbf
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40715
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
SConstruct
tests/gem5/fixture.py
tests/jenkins/presubmit-stage2.sh
tests/jenkins/presubmit.sh