SCons: Only print all the SConsopts being read if verbose is turned on.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 19 Jul 2011 09:56:02 +0000 (02:56 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 19 Jul 2011 09:56:02 +0000 (02:56 -0700)
SConstruct

index a5a5aa0f100e0608c46332c2653e56f23ea5c40f..8c09e5e4dfb1b0ff63b13228ca222d82c896ead8 100755 (executable)
@@ -773,13 +773,16 @@ Export('export_vars')
 
 # Walk the tree and execute all SConsopts scripts that wil add to the
 # above variables
+if not GetOption('verbose'):
+    print "Reading SConsopts"
 for bdir in [ base_dir ] + extras_dir_list:
     if not isdir(bdir):
         print "Error: directory '%s' does not exist" % bdir
         Exit(1)
     for root, dirs, files in os.walk(bdir):
         if 'SConsopts' in files:
-            print "Reading", joinpath(root, 'SConsopts')
+            if GetOption('verbose'):
+                print "Reading", joinpath(root, 'SConsopts')
             SConscript(joinpath(root, 'SConsopts'))
 
 all_isa_list.sort()