scons: Add "warning" and "error" methods.
authorGabe Black <gabeblack@google.com>
Tue, 19 Nov 2019 01:40:37 +0000 (17:40 -0800)
committerGabe Black <gabeblack@google.com>
Thu, 21 Nov 2019 23:37:03 +0000 (23:37 +0000)
commitcc3d5dfeb097d1d64fc39c7724de4b195eb957b7
treedc4afafce8cabde8e9bf4cdf8f58d48e29fcddad
parenta434c6cc4558da46c7ac341cfe685a9189b9a7b8
scons: Add "warning" and "error" methods.

These methods will make reporting errors less verbose and more
consistent, since they'll handle some formating, setting colors,
prefixing with an appropriate "Warning:" or "Error:" tag, and exiting
in the case of an error.

Change-Id: Iddea5bf342a4fc4b26002d8e98292f9dc57fa8cc
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22885
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
site_scons/gem5_scons/__init__.py