From a3d582f8e64d3ce4b414d615e2ced8d396434ad2 Mon Sep 17 00:00:00 2001 From: Curtis Dunham Date: Sun, 23 Mar 2014 11:11:51 -0400 Subject: [PATCH] scons: Shush scons make 'scons -s' actually silent. --- SConstruct | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SConstruct b/SConstruct index e9427124f..2eafb6e6a 100755 --- a/SConstruct +++ b/SConstruct @@ -1057,7 +1057,7 @@ Export('slicc_includes') # Walk the tree and execute all SConsopts scripts that wil add to the # above variables -if not GetOption('verbose'): +if GetOption('verbose'): print "Reading SConsopts" for bdir in [ base_dir ] + extras_dir_list: if not isdir(bdir): @@ -1194,7 +1194,8 @@ Export('make_switching_dir') ################################################### for variant_path in variant_paths: - print "Building in", variant_path + if not GetOption('silent'): + print "Building in", variant_path # Make a copy of the build-root environment to use for this config. env = main.Clone() @@ -1212,7 +1213,8 @@ for variant_path in variant_paths: current_vars_file = joinpath(build_root, 'variables', variant_dir) if isfile(current_vars_file): sticky_vars.files.append(current_vars_file) - print "Using saved variables file %s" % current_vars_file + if not GetOption('silent'): + print "Using saved variables file %s" % current_vars_file else: # Build dir-specific variables file doesn't exist.