From 8153790d0004439f8e9d473da97699644234117b Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Tue, 13 Jan 2009 14:17:50 -0800 Subject: SCons: centralize the Dir() workaround for newer versions of scons. Scons bug id: 2006 M5 Bug id: 308 --- src/SConscript | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/SConscript') diff --git a/src/SConscript b/src/SConscript index 2da5830a9..a14e868fe 100644 --- a/src/SConscript +++ b/src/SConscript @@ -220,6 +220,11 @@ for extra_dir in extras_dir_list: # Add a flag defining what THE_ISA should be for all compilation env.Append(CPPDEFINES=[('THE_ISA','%s_ISA' % env['TARGET_ISA'].upper())]) +# Workaround for bug in SCons version > 0.97d20071212 +# Scons bug id: 2006 M5 Bug id: 308 +for root, dirs, files in os.walk(base_dir, topdown=True): + Dir(root[len(base_dir) + 1:]) + ######################################################################## # # Walk the tree and execute all SConscripts in subdirectories -- cgit v1.2.3