summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream')
-rw-r--r--buildstream/context.py5
-rw-r--r--buildstream/data/userconfig.yaml3
2 files changed, 8 insertions, 0 deletions
diff --git a/buildstream/context.py b/buildstream/context.py
index 398c7ac91..97dfe86cd 100644
--- a/buildstream/context.py
+++ b/buildstream/context.py
@@ -59,6 +59,9 @@ class Context():
self.target_arch = target_arch or host_arch
"""The machine on which the results of the build should execute"""
+ self.strict_build_plan = True
+ """Whether elements must be rebuilt when their dependencies have changed"""
+
self.sourcedir = None
"""The directory where various sources are stored"""
@@ -150,6 +153,8 @@ class Context():
user_config = _yaml.load(config)
_yaml.composite(defaults, user_config, typesafe=True)
+ self.strict_build_plan = _yaml.node_get(defaults, bool, 'strict')
+
for dir in ['sourcedir', 'builddir', 'artifactdir', 'logdir']:
# Allow the ~ tilde expansion and any environment variables in
# path specification in the config files.
diff --git a/buildstream/data/userconfig.yaml b/buildstream/data/userconfig.yaml
index a27ba384f..f3f794bf8 100644
--- a/buildstream/data/userconfig.yaml
+++ b/buildstream/data/userconfig.yaml
@@ -10,6 +10,9 @@
# paths.
#
+# Whether elements must be rebuilt when their dependencies have changed
+strict: True
+
# Location to store sources
sourcedir: ${XDG_CACHE_HOME}/buildstream/sources