]> git.lizzy.rs Git - rust.git/commit
x.py: allow configuring the build directory
authorJoshua Nelson <jyn514@gmail.com>
Thu, 7 May 2020 20:51:03 +0000 (16:51 -0400)
committerJoshua Nelson <jyn514@gmail.com>
Sat, 9 May 2020 00:33:50 +0000 (20:33 -0400)
commitdf36ec0b7e4b44a9f94d019a1cec43dd1f813e3c
treeb63f110bdf00a7efa2f7eede8fc9f647710034cc
parenta08c47310c7d49cbdc5d7afb38408ba519967ecd
x.py: allow configuring the build directory

This allows configuring the directory for build artifacts, instead of having it always be ./build. This means you can set it to a constant location, letting you reuse the same cache while working in several different directories.

The configuration lives in config.toml under build.build-dir. By default, it keeps the existing default of ./build, but it can be configured to any relative or absolute path. Additionally, it allows making outputs relative to the root of the git repository using $ROOT.
config.toml.example
src/bootstrap/bootstrap.py
src/bootstrap/config.rs