From: Gabe Black Date: Fri, 23 Oct 2020 03:00:48 +0000 (-0700) Subject: util: Pass TERM through to commands in the m5 util's scons. X-Git-Tag: develop-gem5-snapshot~395 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4b6a03c4d9774680d0855789c8d8fab76b82498;p=gem5.git util: Pass TERM through to commands in the m5 util's scons. This enables color output from commands since they can detect that the terminal supports it. Change-Id: I4bbf400dccb8c6bfe92459a9db812e06e5a69b5a Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27754 Maintainer: Bobby R. Bruce Tested-by: kokoro Reviewed-by: Jason Lowe-Power Reviewed-by: Pouya Fotouhi --- diff --git a/util/m5/SConstruct b/util/m5/SConstruct index 8462cab69..3a96103ae 100644 --- a/util/m5/SConstruct +++ b/util/m5/SConstruct @@ -56,6 +56,8 @@ main.Append(CPPPATH=[ common_include ]) # Propogate the environment's PATH setting. main['ENV']['PATH'] = os.environ['PATH'] +# Pass through terminal information to, for instance, enable color output. +main['ENV']['TERM'] = os.environ['TERM'] # Detect some dependencies of some forms of the m5 utility/library. main['HAVE_JAVA'] = all(key in main for key in ('JAVAC', 'JAR'))