summaryrefslogtreecommitdiff
path: root/src/SConscript
diff options
context:
space:
mode:
authorCurtis Dunham <Curtis.Dunham@arm.com>2016-02-08 13:39:45 -0600
committerCurtis Dunham <Curtis.Dunham@arm.com>2016-02-08 13:39:45 -0600
commitbead7f249a71f8b15ae92b0df9822abb52ca7323 (patch)
treedebbc682a2f9a40a3e02a65b982e0ba78f7bad5e /src/SConscript
parent0f27d70e90c20ba21d3f6a3360a11d9d5e9ee133 (diff)
downloadgem5-bead7f249a71f8b15ae92b0df9822abb52ca7323.tar.xz
scons: always generate sim/tags.cc
Due to insufficient build deps, the checkpoint tags might not get updated; this commit solves this. Due to the uncommon nature of the build target, regenerating tags.cc is a fairly clean solution. Since SCons hashes file contents, it won't recompile anything unless a new checkpoint upgrader is actually added. --HG-- extra : amend_source : ed3879da7668554693f697076deaf5029cc9b954
Diffstat (limited to 'src/SConscript')
-rwxr-xr-xsrc/SConscript2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/SConscript b/src/SConscript
index 2bac0bff3..6cef47089 100755
--- a/src/SConscript
+++ b/src/SConscript
@@ -962,9 +962,11 @@ env.Depends(SWIG, 'debug/flags.cc')
Source('debug/flags.cc')
# version tags
+tags = \
env.Command('sim/tags.cc', None,
MakeAction('util/cpt_upgrader.py --get-cc-file > $TARGET',
Transform("VER TAGS")))
+env.AlwaysBuild(tags)
# Embed python files. All .py files that have been indicated by a
# PySource() call in a SConscript need to be embedded into the M5