SCons: centralize the Dir() workaround for newer versions of scons.

Scons bug id: 2006 M5 Bug id: 308
This commit is contained in:
Nathan Binkert
2009-01-13 14:17:50 -08:00
parent 758d6ccf1f
commit 8153790d00
7 changed files with 5 additions and 42 deletions

View File

@@ -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