diff options
author | Nathan Binkert <nate@binkert.org> | 2009-09-26 12:51:37 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-09-26 12:51:37 -0700 |
commit | 160bcf4442df44b410c61c2d842696cb23b796f7 (patch) | |
tree | 2a03c67b6a3f5f7e724c4ab1ba109888af995f19 /src/SConscript | |
parent | 7a8ee4f40a4fbbbbf4d6a8e5b6a81d0486b1a1b6 (diff) | |
download | gem5-160bcf4442df44b410c61c2d842696cb23b796f7.tar.xz |
python: Fix m5.defines so grabbing flags works correctly
Diffstat (limited to 'src/SConscript')
-rw-r--r-- | src/SConscript | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/SConscript b/src/SConscript index 705d76b1d..35753ce4c 100644 --- a/src/SConscript +++ b/src/SConscript @@ -411,9 +411,12 @@ buildEnv = m5.util.SmartDict($build_env) hgRev = '$hg_info' compileDate = m5.internal.core.compileDate -for k,v in m5.internal.core.__dict__.iteritems(): - if k.startswith('flag_'): - setattr(buildEnv, k[5:], v) +_globals = globals() +for key,val in m5.internal.core.__dict__.iteritems(): + if key.startswith('flag_'): + flag = key[5:] + _globals[flag] = val +del _globals """) code.write(str(target[0])) |