summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2017-07-07 13:13:38 +0200
committerJürg Billeter <j@bitron.ch>2017-07-14 14:13:51 +0200
commita37ff7d129b438c863d88998309007b000e4cb77 (patch)
tree3fdcae1b3cd938a20a03b12662ab5387eef95467
parent3f065aa70d9d5bb4088ef43b0552e1190764a54e (diff)
downloadbuildstream-a37ff7d129b438c863d88998309007b000e4cb77.tar.gz
main.py: Add --strict/--no-strict option
With --strict, elements must be rebuilt when their dependencies have changed.
-rw-r--r--buildstream/_frontend/main.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/_frontend/main.py b/buildstream/_frontend/main.py
index f45dd3fa1..9c0641146 100644
--- a/buildstream/_frontend/main.py
+++ b/buildstream/_frontend/main.py
@@ -83,6 +83,8 @@ _, _, _, _, host_machine = os.uname()
help="Machine architecture for the sandbox (defaults to --arch)")
@click.option('--target-arch',
help="Machine architecture for build output (defaults to --arch)")
+@click.option('--strict/--no-strict', default=None, is_flag=True,
+ help="Elements must be rebuilt when their dependencies have changed")
@click.pass_context
def cli(context, **kwargs):
"""Build and manipulate BuildStream projects
@@ -494,6 +496,7 @@ class App():
# the command line when used, trumps the config files.
#
override_map = {
+ 'strict': 'strict_build_plan',
'debug': 'log_debug',
'verbose': 'log_verbose',
'error_lines': 'log_error_lines',