LLAM v3.0.1

Build and install options

Edit pageReport a problemLast modified: 03 December 2026

Configure the install scripts, CMake, and the Makefile.

On this page

Install script

POSIX:

sh
curl -fsSL https://github.com/Feralthedogg/LLAM/releases/download/v3.0.1/install.sh |
  sh -s -- --version 3.0.1 --prefix "$HOME/.local"
Option Meaning
--prefix <dir> Install prefix. Defaults to /usr/local on POSIX.
--version <version> Release version to install. Defaults to LLAM_INSTALL_VERSION or the script default.
--target <target> Release target, such as linux-x86_64 or macos-aarch64.
--base-url <url> Override the release asset base URL. Useful for mirrors or testing.
--dry-run Print planned file operations without installing.
--force Allow overwrite of existing installed files.
-h, --help Print usage.

These commands install the 3.0.1 SDK. See Build from source to configure a local runtime or producer build.

Choose a release or target explicitly when automatic host detection is not what you want:

sh
curl -fsSL https://github.com/Feralthedogg/LLAM/releases/download/v3.0.1/install.sh |
  sh -s -- --version 3.0.1 --target macos-aarch64 --prefix "$HOME/.local"

Windows PowerShell:

PowerShell
Invoke-WebRequest "https://github.com/Feralthedogg/LLAM/releases/download/v3.0.1/install.ps1" -OutFile install.ps1
.\install.ps1 -Version 3.0.1 -Prefix "$env:LOCALAPPDATA\LLAM"
Parameter Meaning
-Prefix <dir> Install prefix. Defaults to %LOCALAPPDATA%\LLAM when available.
-Version <version> Release version to install. Defaults to LLAM_INSTALL_VERSION or the script default.
-Target <target> Release target, normally windows-x86_64.
-BaseUrl <url> Override the release asset base URL.
-DryRun Print planned file operations without installing.
-Force Allow overwrite of existing installed files.

CMake

Option Values Meaning
CMAKE_BUILD_TYPE Release, Debug, etc. Build configuration for single-config generators. Defaults to Release when unset.
CMAKE_INSTALL_PREFIX path Install destination used by cmake --install.
CMAKE_OSX_ARCHITECTURES one architecture Select macOS architecture. Universal macOS builds are not supported yet.
LLAM_ENABLE_WINDOWS_BACKEND ON, OFF Enables the native Windows backend. Defaults to ON, and native Windows builds require it.
LLAM_EXPERIMENTAL_ASYNC_PREEMPT ON, OFF Build native asynchronous preemption backends. Defaults to ON on Linux and macOS x86_64/AArch64 and Windows x86_64 with MinGW or MSVC. Hosts must pass the runtime's native probe. Builds without a backend expose the *_compat constructors for boundary/safepoint preemption.
LLAM_MANAGED_TOOLING off, auto, required Build the managed producer and verifier with LLVM 23.1.2 or a later 23.1 patch release. Use the same LLVM build to run the producer. Defaults to off. See Managed C.
LLAM_PREEMPT_TOOLING off, auto, required Build the optional compiler metadata tooling. Defaults to off. See Preemption metadata.
LLAM_WINDOWS_ASYNC_SCHEDULER_ORACLE ON, OFF Build the test-only Windows x64 native scheduler async-restore oracle. Defaults to OFF.

Common Windows build:

PowerShell
cmake -S . -B build-windows -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DLLAM_ENABLE_WINDOWS_BACKEND=ON

Makefile

Variable Meaning
CC C compiler, for example gcc or clang.
CFLAGS Extra C compiler flags.
LDLIBS Extra link flags and libraries.
OBJDIR Object output directory for alternate sanitizer or profiling builds.
WINDOWS_CMAKE_ARGS Extra CMake generator/config args when Make delegates on Windows.
LLAM_VERSION Version override used by release/package flows.
LLAM_EXPERIMENTAL_ASYNC_PREEMPT auto, 0, or 1. auto builds native asynchronous preemption on Linux and macOS x86_64 and ARM64. Windows uses the separate CMake option, enabled by default for MinGW and Visual Studio x86_64. A build without a backend uses the *_compat constructors.
LLAM_PREEMPT_TOOLING off, auto, or required for the optional compiler metadata tooling. Defaults to off.

Examples:

sh
make -j4 CC=gcc
make test-asan CC=clang
make all WINDOWS_CMAKE_ARGS="-G Ninja"
↑↓ Navigate↵ Openesc CloseSearching the 3.0.1 docs