Build Documentation

January 15, 2026 ยท View on GitHub

This directory contains documentation related to building and integrating LeanCLR.

Documents

DocumentDescription
build_runtime.mdHow to build the LeanCLR runtime library
embed_leanclr.mdHow to embed LeanCLR into your project

Overview

LeanCLR is built using CMake and supports multiple platforms:

  • Windows - Visual Studio 2022 (MSVC)
  • Linux/macOS - GCC/Clang
  • WebAssembly - Emscripten

Prerequisites

  • CMake 3.15 or higher
  • C++17 compatible compiler
  • Visual Studio 2022 (for Windows development)
  • Emscripten SDK (for WebAssembly builds)

Quick Start

Windows (Visual Studio)

cd src/runtime
build.bat Release

WebAssembly

cd src/samples/lean-wasm
build-wasm.bat

For detailed instructions, see the individual documentation files.