diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-10-26 14:54:36 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-10-26 18:09:06 +0200 |
commit | 4e1887c8f496528081214446ea055a10be8e5b86 (patch) | |
tree | f3c4242199177af9b5e563ba3d9c34d9f932c3f3 /INSTALL.md | |
parent | a29128d4e5ba64bf09f67a7cffea6925af01e0e4 (diff) | |
download | justbuild-4e1887c8f496528081214446ea055a10be8e5b86.tar.gz |
Bootstrap: allow setting build configuration
When constructing the build configuration for the bootstrap
build is just, start with the value of the environment variable
JUST_BUILD_CONF, if set, instead of the empty object. While there,
also propagate SOURCE_DATE_EPOCH from the environment to the build
configuration.
Diffstat (limited to 'INSTALL.md')
-rw-r--r-- | INSTALL.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -70,6 +70,17 @@ before to be present as well). Additionally, if the environment variable `DEBUG` is set, the second bootstrap phase is carried out sequentially rather than in parallel. +Moreover, when constructing the build configuration, the scripts +starts with the value of the environment variable `JUST_BUILD_CONF` instead +of the empty object, if this variable is set. One configuration parameter +is the build enviroment `ENV` that can be used to set an unusual +value of `PATH`, e.g., +``` sh +env JUST_BUILD_CONF='{"ENV": {"PATH": "/opt/toolchain/bin"}}' python3 ./bin/boostrap.py +``` +Additionally, if `SOURCE_DATE_EPOCH` is set in the build environment, it +is forwarded to the build configuration as well. + In any case, the resulting binary is selfcontained and can be moved to an appropriate location in `PATH`. |