The builder is based on UnifiedTreeBuilder.getCmakeWithNinjaBuildFactory, but adds one extra checkout step
between getLLVMBuildFactoryAndSourcecodeSteps and addCmakeSteps/addNinjaSteps.
Builder checks out binary tests from another repo, currently at https://github.com/rafaelauler/bolt-tests.
The plan is to transfer the repository over to llvm organization in the future.
The configuration is tested with a temporary build master, which points to the current BOLT repo instead of the monorepo.
This diff is a part of BOLT upstreaming:
https://lists.llvm.org/pipermail/llvm-dev/2021-December/154290.html
This would remove the source code every time when only obj files removal is requested. Not sure if you want this.
Most likely you want to remove the source code only when clean build property is evaluated as true. Please see the discussion of the similar issue in https://reviews.llvm.org/D107193.