From e4b6a03c4d9774680d0855789c8d8fab76b82498 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 22 Oct 2020 20:00:48 -0700 Subject: [PATCH] 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 --- util/m5/SConstruct | 2 ++ 1 file changed, 2 insertions(+) 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')) -- 2.30.2