projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a8ee4f
)
python: Fix m5.defines so grabbing flags works correctly
author
Nathan Binkert
<nate@binkert.org>
Sat, 26 Sep 2009 19:51:37 +0000
(12:51 -0700)
committer
Nathan Binkert
<nate@binkert.org>
Sat, 26 Sep 2009 19:51:37 +0000
(12:51 -0700)
src/SConscript
patch
|
blob
|
history
diff --git
a/src/SConscript
b/src/SConscript
index 705d76b1dcc04ba876b903551c602c93071b75d8..35753ce4cabc5fa241f628dfb8c9a0d8eb85d9cd 100644
(file)
--- 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]))