Manuscript Documentation
v2026.12.0

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.exe on Windows): the linker used for every native build.
  • lib/ms/lib/libcranelift.* (lib/ms/bin/cranelift.dll on Windows): the in-process Cranelift backend used for Debug builds.
  • lib/ms/lib/libLLVM.* (lib/ms/bin/LLVM-C.dll on Windows): the in-process LLVM backend used for Release and MinSizeRel builds.
  • 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 compatible lld executable.
  • MS_CRANELIFT: path to a shared Cranelift library, or off to emit Debug builds through LLVM instead.
  • MS_LLVM: path to a compatible shared LLVM library.
  • MS_RUNTIME and MS_FILES: :-separated (; on Windows) list of runtime archives and directory of startup files.

Output and temporary files:

  • ms build writes the executable you name and an adjacent .ms-build.json metadata file.
  • ms run, ms test, and ms bench link in temporary directories; ms run --profile copies the executable into its output directory.
  • ms add and ms install cache fetched git packages so subsequent builds work offline.

See project configuration , build levels , and build and share a program .