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 <bbruce@ucdavis.edu> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Pouya Fotouhi <pfotouhi@ucdavis.edu>
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user