diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-10-13 11:05:55 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-10-13 12:17:46 +0200 |
commit | adb8205158d036a47ed364ba4ce9deff82e7d3b6 (patch) | |
tree | 9f4b7f2bc64c5805a133fb7622861a3a5c9a5f6a /bin | |
parent | 370190489ade1539c2d8e8b8b7da0411776e2720 (diff) | |
download | justbuild-adb8205158d036a47ed364ba4ce9deff82e7d3b6.tar.gz |
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.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bootstrap.py | 6 |
1 files changed, 5 insertions, 1 deletions
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) |