From 14986aadd87ae82372f531e9049a87a408642e2c Mon Sep 17 00:00:00 2001 From: Erich Keane Date: Wed, 20 May 2015 10:27:32 -0700 Subject: [PATCH] Enable compiler coloring in build terminal This patch forces Scons to inherit all environment terminal settings, including the support for color. This allows warnings/errors to show up in color during the build. Change-Id: Ibd27cdecef71205d03b0a04043aac0e9763a14d0 Signed-off-by: Erich Keane Reviewed-on: https://gerrit.iotivity.org/gerrit/1053 Tested-by: jenkins-iotivity --- SConstruct | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index f02a54c..bbe03d1 100644 --- a/SConstruct +++ b/SConstruct @@ -22,13 +22,18 @@ # The main build script # ## +import os # Load common build config SConscript('build_common/SConscript') +Import('env') + +if os.environ.get('TERM') != None: + env['ENV']['TERM'] = os.environ['TERM'] + # Load extra options SConscript('extra_options.scons') -Import('env') target_os = env.get('TARGET_OS') if target_os == 'arduino': -- 2.7.4