summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2017-10-16 15:49:06 -0700
committerGary E. Miller <gem@rellim.com>2017-10-16 15:49:06 -0700
commite89c42ed0fc17e3da01bac819bd3a2009e6a3aef (patch)
treeb076dcd131b80dd5e6cdd04c26d22a5ee378b736 /SConstruct
parentf7f9e76e3540f6979a42b1d637bc540d73b62fdb (diff)
downloadgpsd-e89c42ed0fc17e3da01bac819bd3a2009e6a3aef.tar.gz
scons: scons not always rebuilding a target when the source changes.
Tell scons to check file timestamps to see is source newer than target. Before, if target existed, not rebuilt when shouce changed.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 040103cf..3ef9ebc3 100644
--- a/SConstruct
+++ b/SConstruct
@@ -118,6 +118,10 @@ def filtered_spawn(sh, escape, cmd, args, env):
# Build-control options
#
+# without this, scons will not rebuild an existing target when the
+# source changes.
+Decider('timestamp-match')
+
# Start by reading configuration variables from the cache
opts = Variables('.scons-option-cache')