From: Erich Keane Date: Wed, 20 May 2015 17:27:32 +0000 (-0700) Subject: Enable compiler coloring in build terminal X-Git-Tag: 1.2.0+RC1~1692 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14986aadd87ae82372f531e9049a87a408642e2c;p=platform%2Fupstream%2Fiotivity.git 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 --- 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':