diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-03-11 11:27:36 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-03-11 11:27:36 -0800 |
commit | 02f10fbdc8ab95d8115fc71238f157d4e10f45a6 (patch) | |
tree | 7e9fde33fb3e48d68a6d5d2e0c11a51f05a43167 /SConstruct | |
parent | b6ba1a528b0dca64b5d44f7deebea48bb62abe1b (diff) | |
download | gem5-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 'SConstruct')
-rwxr-xr-x | SConstruct | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/SConstruct b/SConstruct index 8f049e749..3033348cd 100755 --- a/SConstruct +++ b/SConstruct @@ -227,16 +227,8 @@ If you are actually a M5 developer, please fix this and run the style hook. It is important. """ -hg_info = "Unknown" if hgdir.exists(): - # 1) Grab repository revision if we know it. - cmd = "hg id -n -i -t -b" - try: - hg_info = readCommand(cmd, cwd=main.root.abspath).strip() - except OSError: - print mercurial_bin_not_found - - # 2) Ensure that the style hook is in place. + # Ensure that the style hook is in place. try: ui = None if not GetOption('ignore_style'): @@ -255,8 +247,6 @@ if hgdir.exists(): else: print ".hg directory not found" -main['HG_INFO'] = hg_info - ################################################### # # Figure out which configurations to set up based on the path(s) of |