зеркало из https://github.com/microsoft/BuildXL.git
1.1 KiB
1.1 KiB
Instructions
- Set the environment variable
BUILDXL_BIN
to the BuildXL binary folder containingbxl.exe
. For example, if your BuildXL repo is inD:\BuildXL
, then building BuildXL itself usingbxl.cmd -Minimal
will put thebxl.exe
inD:\BuildXL\Out\Bin\debug\win-x64
. - Point the environment variable
BUILDXL_BIN
to the BuildXL binary folder path. For example, if you set up BuildXL inD:\BuildXL
and built the repository, thenD:\BuildXL\Out\Bin\debug\win-x64
should be the value. - Run
.\build.ps1
from PowerShell, or equivalentlybuild.bat
from the command line prompt. This will:- Generate the
build.ninja
specification by runningcmake -GNinja
in this directory. The next step depends on theCMakeNinjaHelloWorld\build.ninja
file 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.