summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2015-02-03 14:25:43 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2015-02-03 14:25:43 -0500
commitb34b55b59772ec32cdd896de265b7b9ac7e7b839 (patch)
tree2b68bc2b1a32c5e610c04ae4b98e2490e104c2f9
parentb89fd576633f63b14b8e5eb24de377e4918c363d (diff)
downloadgem5-b34b55b59772ec32cdd896de265b7b9ac7e7b839.tar.xz
scons: Avoid implicit command dependencies
Work around a bug in scons that causes the param wrappers being compiled twice. The easiest way for us to do so is to tell scons to ignore implicit command dependencies.
-rwxr-xr-xSConstruct5
1 files changed, 4 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 849585aa7..6a163f762 100755
--- a/SConstruct
+++ b/SConstruct
@@ -221,7 +221,10 @@ for key,val in sorted(os.environ.iteritems()):
any([key.startswith(prefix) for prefix in use_prefixes]):
use_env[key] = val
-main = Environment(ENV=use_env)
+# Tell scons to avoid implicit command dependencies to avoid issues
+# with the param wrappes being compiled twice (see
+# http://scons.tigris.org/issues/show_bug.cgi?id=2811)
+main = Environment(ENV=use_env, IMPLICIT_COMMAND_DEPENDENCIES=0)
main.Decider('MD5-timestamp')
main.root = Dir(".") # The current directory (where this file lives).
main.srcdir = Dir("src") # The source directory