From adb8205158d036a47ed364ba4ce9deff82e7d3b6 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 13 Oct 2022 11:05:55 +0200 Subject: bootstrap: by default, bootstrap in parallel Only if the environment variable DEBUG is set, fall back to sequentially executing the graph generated by the bootstrap version of just. --- bin/bootstrap.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/bootstrap.py') diff --git a/bin/bootstrap.py b/bin/bootstrap.py index b6f3fac7..4b83e033 100755 --- a/bin/bootstrap.py +++ b/bin/bootstrap.py @@ -254,8 +254,12 @@ def bootstrap(): "--dump-artifacts-to-build", TO_BUILD, MAIN_MODULE, MAIN_TARGET ], cwd=src_wrkdir) + if "DEBUG" in os.environ: + traverser = "./bin/bootstrap-traverser.py" + else: + traverser = "./bin/parallel-bootstrap-traverser.py" run([ - "./bin/bootstrap-traverser.py", "-C", CONF_FILE, "--default-workspace", + traverser, "-C", CONF_FILE, "--default-workspace", src_wrkdir, GRAPH, TO_BUILD ], cwd=src_wrkdir) -- cgit v1.2.3