Instructions
March 6, 2024 ยท View on GitHub
- Set the environment variable
BUILDXL_BINto the BuildXL binary folder containingbxl.exe. For example, if your BuildXL repo is inD:\BuildXL, then building BuildXL itself usingbxl.cmd -Minimalwill put thebxl.exeinD:\BuildXL\Out\Bin\debug\win-x64. - Point the environment variable
BUILDXL_BINto the BuildXL binary folder path. For example, if you set up BuildXL inD:\BuildXLand built the repository, thenD:\BuildXL\Out\Bin\debug\win-x64should be the value. - Run
.\build.ps1from PowerShell, or equivalentlybuild.batfrom the command line prompt. This will:- Generate the
build.ninjaspecification by runningcmake -GNinjain this directory. The next step depends on theCMakeNinjaHelloWorld\build.ninjafile existing as the output of this invocation. - Run the build with BuildXL using the Ninja resolver
- Generate the
- Subsequent runs of this script should be fully cached. The Ninja-generation step (step 2) should be re-run if the CMake specifications change.
For further configuration options for the Ninja resolver, see Resolvers.