summaryrefslogtreecommitdiff
path: root/src/SConscript
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-03-11 11:27:36 -0800
committerGabe Black <gblack@eecs.umich.edu>2011-03-11 11:27:36 -0800
commit02f10fbdc8ab95d8115fc71238f157d4e10f45a6 (patch)
tree7e9fde33fb3e48d68a6d5d2e0c11a51f05a43167 /src/SConscript
parentb6ba1a528b0dca64b5d44f7deebea48bb62abe1b (diff)
downloadgem5-02f10fbdc8ab95d8115fc71238f157d4e10f45a6.tar.xz
SCons: Stop embedding the mercurial revision into the binary.
This causes a lot of rebuilds that could have otherwise possibly been avoided, and, more annoyingly, a lot of unnecessary rerunning of the regressions. The benefits of having the revision in the output haven't materialized, so this change removes it.
Diffstat (limited to 'src/SConscript')
-rwxr-xr-xsrc/SConscript5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/SConscript b/src/SConscript
index 0ee144747..842044e4c 100755
--- a/src/SConscript
+++ b/src/SConscript
@@ -410,7 +410,7 @@ depends = [ PySource.modules[dep].snode for dep in module_depends ]
# Generate Python file containing a dict specifying the current
# buildEnv flags.
def makeDefinesPyFile(target, source, env):
- build_env, hg_info = [ x.get_contents() for x in source ]
+ build_env = source[0].get_contents()
code = code_formatter()
code("""
@@ -418,7 +418,6 @@ import m5.internal
import m5.util
buildEnv = m5.util.SmartDict($build_env)
-hgRev = '$hg_info'
compileDate = m5.internal.core.compileDate
_globals = globals()
@@ -430,7 +429,7 @@ del _globals
""")
code.write(target[0].abspath)
-defines_info = [ Value(build_env), Value(env['HG_INFO']) ]
+defines_info = Value(build_env)
# Generate a file with all of the compile options in it
env.Command('python/m5/defines.py', defines_info,
MakeAction(makeDefinesPyFile, Transform("DEFINES", 0)))