зеркало из https://github.com/microsoft/BuildXL.git
3b54737b0b
The inbox sdk source resolver fails for Ninja builds. Disable it explicitly in this case, to not require this configuration explicitly in the resolver settings. Related work items: #2154307 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
README.md | ||
build.bat | ||
build.ps1 | ||
config.dsc | ||
main.cc |
README.md
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.