summaryrefslogtreecommitdiff
path: root/src/SConscript
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-01-13 14:17:50 -0800
committerNathan Binkert <nate@binkert.org>2009-01-13 14:17:50 -0800
commit8153790d0004439f8e9d473da97699644234117b (patch)
treea9fca286e926af4be9de39894d8dd168c80cd85f /src/SConscript
parent758d6ccf1f54ca20bec12598957fc1bcfa8a7ffb (diff)
downloadgem5-8153790d0004439f8e9d473da97699644234117b.tar.xz
SCons: centralize the Dir() workaround for newer versions of scons.
Scons bug id: 2006 M5 Bug id: 308
Diffstat (limited to 'src/SConscript')
-rw-r--r--src/SConscript5
1 files changed, 5 insertions, 0 deletions
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