Install layout and build tools#
ms build, run, test, bench, and ms run --profile recompile the whole program on each invocation. There is no incremental object cache between builds.
Release archives place ms in bin/ and its supporting files under lib/ms/:
lib/ms/bin/lld(lld.exeon Windows): the linker used for every native build.lib/ms/lib/libcranelift.*(lib/ms/bin/cranelift.dllon Windows): the in-process Cranelift backend used forDebugbuilds.lib/ms/lib/libLLVM.*(lib/ms/bin/LLVM-C.dllon Windows): the in-process LLVM backend used forReleaseandMinSizeRelbuilds.lib/ms/runtime/: precompiled static runtime archives (dynamic glibc and static musl on Linux) and startup files.
Environment overrides take precedence over the installed layout:
MS_LLD: path to a compatiblelldexecutable.MS_CRANELIFT: path to a shared Cranelift library, oroffto emitDebugbuilds through LLVM instead.MS_LLVM: path to a compatible shared LLVM library.MS_RUNTIMEandMS_FILES::-separated (;on Windows) list of runtime archives and directory of startup files.
Output and temporary files:
ms buildwrites the executable you name and an adjacent.ms-build.jsonmetadata file.ms run,ms test, andms benchlink in temporary directories;ms run --profilecopies the executable into its output directory.ms addandms installcache fetched git packages so subsequent builds work offline.
See project configuration , build levels , and build and share a program .