The quick path

Download a release

Official releases include everything needed to run the compiler. Pick a monthly release for a stable build, or a nightly when you need the newest features.

Choose your platform

A few things before you begin

Showing instructions for Windows.

Windows

Odin on Windows uses the Microsoft C++ toolchain and Windows SDK for linking.

  1. Install Build Tools for Visual Studio. In the installer, select Desktop development with C++, including MSVC and the Windows SDK. Get the Build Tools.
  2. Use a developer command prompt. Open x64 Native Tools Command Prompt for VS20xx from the Start menu, or run vcvarsall.bat x64 from a blank cmd session.
  3. Unzip Odin and run it. Optionally add the Odin directory to PATH so odin.exe is available everywhere.
Want the smallest possible Build Tools install?

A third-party script can install only the required components.

Visual Studio Installer with Desktop development with C++, MSVC, and Windows SDK selected

For contributors and tinkerers

Build from source

All build paths clone the same repository. Your platform tab keeps the prerequisite steps close at hand.

1

Clone Odin

git clone https://github.com/odin-lang/Odin
cd Odin
git lfs install

Optionally use git checkout dev-YYYY-MM to select an official release branch.

2

Build it

build.bat release

macOS and Unix support LLVM 17 through 22. Ensure llvm-config and clang are on your PATH.

Source build notes and updating

macOS + WASM

Install the linker with brew install lld to compile for WASM. To choose a specific LLVM installation, use LLVM_CONFIG=/path/to/llvm-config make release-native.

Linux packages

Some distributions split LLVM into packages, including an llvm-devel package. On older distributions, see apt.llvm.org or the Fedora LLVM snapshots.

Updating

In your Odin directory, run git pull, then git lfs pull if needed, and run the platform build command again.

atomic.h on Unix

If you see an atomic header error, run clang++ -v, note the selected GCC version, then install its C++ development package—often libstdc++-VERSION-dev. See issue #3376 for help.

Prefer a package manager?

Check community packages

Third parties maintain many package-manager builds. Their freshness and configuration can vary, so use their issue trackers for package-specific support.

View Odin on Repology

Need a hand?

Got stuck?

Ask the community on Discord, or open an issue or discussion on GitHub.

Installation complete

What next?

Learn the language’s design and basic workflow in the Odin Overview.