← Back to Introduction

Platform Support

Zig supports a wide range of architectures and operating systems. The Support Table and Additional Platforms sections cover the targets that Zig can build programs for, while the zig-bootstrap README covers the targets that the Zig compiler itself can be easily cross-compiled to run on.

Tier System

Zig’s level of support for various targets is broadly categorized into four tiers with Tier 1 being the highest. The goal is for Tier 1 targets to have zero disabled tests - this will become a requirement for post-1.0.0 Zig releases.

Tier 1

  • All non-experimental language features are known to work correctly on this target.
  • The compiler can generate machine code for this target without relying on LLVM.
  • The integrated fuzzer works on this target (if applicable).

Tier 2

  • The standard library’s cross-platform abstractions have implementations for this target.
  • Failed assertions and crashes produce stack traces on this target.
  • libc is available for this target even when cross-compiling (if applicable).
  • Continuous integration machines build the module tests for this target on every push.

Tier 3

  • The compiler can generate machine code for this target by relying on an external backend such as LLVM.
  • The linker can produce object files, libraries, and executables for this target.

Tier 4

  • The compiler can generate assembly or C source code for this target.

Support Table

In the following table, ✅ indicates full support, ❌ indicates no support, and ⚠️ indicates that there is partial support, e.g. only for some sub-targets, or with some notable known issues. ❔ indicates that the status is largely unknown, typically because the target is rarely exercised. Hover over other icons for details.

Targets marked with 🪦 are obsolescent; the Zig compiler and standard library maintain best-effort support for them, but that support is expected to be removed eventually.

Tier Target Code Gen. Linker Lang. Feat. Std. Lib. Stack Traces Fuzzer libc CI
1 x86_64-linux 🖥️⚡ ✅ ✅ ✅ ✅ ✅ ✅ ✅

2 aarch64-freebsd 🖥️🛠️ ✅ ✅ ✅ ✅ ✅ ✅ ✅
2 aarch64[_be]-linux 🖥️🛠️ ✅ ✅ ✅ ✅ ✅ ✅ ✅
2 aarch64-maccatalyst 🖥️🛠️ ✅ ✅ ✅ ✅ ✅ ✅ ✅
2 aarch64-macos 🖥️🛠️ ✅ ✅ ✅ ✅ ✅ ✅ ✅
2 aarch64[_be]-netbsd 🖥️🛠️ ✅ ✅ ✅ ✅ ✅ ✅ ✅
2 aarch64-openbsd 🖥️🛠️ ✅ ✅ ✅ ✅ ❌ ✅ ✅
2 aarch64-windows 🖥️🛠️ ✅ ✅ ✅ ✅ ❌ ✅ ⚠️
2 arm-freebsd 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ✅
2 arm[eb]-linux 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ✅
2 arm[eb]-netbsd 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ⚠️
2 arm-openbsd 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ⚠️
2 hexagon-linux 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ✅
2 loongarch32-linux 🖥️🛠️ ✅ ❔ ✅ ✅ ❌ ✅ ⚠️
2 loongarch64-linux 🖥️🛠️ ✅ ✅ ✅ ✅ ✅ ✅ ✅
2 mips[el]-linux 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ✅
2 mips[el]-netbsd 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ⚠️
2 mips64[el]-linux 🖥️ ✅ ✅ ✅ ✅ ✅ ✅ ✅
2 mips64[el]-netbsd 🖥️ ✅ ✅ ✅ ✅ ✅ ✅ ⚠️
2 mips64-openbsd 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ⚠️
2 powerpc-linux 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ⚠️
2 powerpc-netbsd 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ⚠️
2 powerpc-openbsd 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ⚠️
2 powerpc64[le]-freebsd 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ⚠️
2 powerpc64[le]-linux 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ✅
2 powerpc64-openbsd 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ⚠️
2 riscv32-linux 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ✅
2 riscv32-netbsd 🖥️ ✅ ✅ ✅ ✅ ✅ ✅ ⚠️
2 riscv64-freebsd 🖥️🛠️ ✅ ✅ ✅ ✅ ✅ ✅ ⚠️
2 riscv64-linux 🖥️🛠️ ✅ ✅ ✅ ✅ ✅ ✅ ✅
2 riscv64-netbsd 🖥️🛠️ ✅ ✅ ✅ ✅ ✅ ✅ ⚠️
2 riscv64-openbsd 🖥️🛠️ ✅ ✅ ✅ ✅ ❌ ✅ ⚠️
2 s390x-linux 🖥️ ✅ ✅ ✅ ✅ ✅ ✅ ✅
2 sparc64-linux 🖥️🛠️ ✅ ✅ ✅ ✅ ✅ ✅ ✅
2 thumb[eb]-linux 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ✅
2 wasm32-wasi 🖥️🛠️ ✅ ✅ ✅ ⚠️ ❌ ✅ ✅
2 x86-linux 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ✅
2 x86-netbsd 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ✅
2 x86-openbsd 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ⚠️
2 🪦 x86-windows 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ✅
2 x86_64-freebsd 🖥️🛠️ ✅ ✅ ✅ ✅ ✅ ✅ ✅
2 🪦 x86_64-maccatalyst 🖥️⚡ ✅ ✅ ✅ ✅ ✅ ✅ ⚠️
2 🪦 x86_64-macos 🖥️⚡ ✅ ✅ ✅ ✅ ✅ ✅ ⚠️
2 x86_64-netbsd 🖥️🛠️ ✅ ✅ ✅ ✅ ✅ ✅ ✅
2 x86_64-openbsd 🖥️🛠️ ✅ ✅ ✅ ✅ ❌ ✅ ✅
2 x86_64-windows 🖥️🛠️ ✅ ✅ ✅ ✅ ❌ ✅ ✅

3 aarch64-haiku 🖥️🛠️ ✅ ✅ ✅ ✅ ❔ ❌️ ❌️
3 aarch64-ios 🖥️🛠️ ✅ ✅ ✅ ✅ ❌ ❌️ ❌️
3 aarch64-serenity 🖥️🛠️ ✅ ✅ ✅ ✅ ❔ ❌️ ❌️
3 aarch64-tvos 🖥️🛠️ ✅ ✅ ✅ ✅ ❌ ❌️ ❌️
3 aarch64-visionos 🖥️🛠️ ✅ ✅ ✅ ✅ ❌ ❌️ ❌️
3 aarch64-watchos 🖥️🛠️ ✅ ✅ ✅ ✅ ❌ ❌️ ❌️
3 arm-haiku 🖥️ ✅ ✅ ✅ ✅ ❌ ❌️ ❌️
3 mipsf64[el]-linux 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ❌
3 mipsf64n8[el]-linux 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ❌
3 mipsn8[el]-linux 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ❌
3 mipsr6[el]-linux 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ❌
3 mips64n8[el]-linux 🖥️ ✅ ✅ ✅ ✅ ✅ ✅ ❌
3 mips64r6[el]-linux 🖥️ ✅ ✅ ✅ ✅ ✅ ✅ ❌
3 riscv64-haiku 🖥️🛠️ ✅ ✅ ✅ ✅ ❔ ❌️ ❌️
3 riscv64-serenity 🖥️🛠️ ✅ ✅ ✅ ✅ ❔ ❌️ ❌️
3 sparc64-openbsd 🖥️🛠️ ✅ ✅ ✅ ❌️ ❌ ✅ ⚠️
3 🪦 thumb-windows 🖥️ ✅ ✅ ✅ ✅ ❌ ✅ ❌️
3 wasm64-wasi 🖥️🛠️ ✅ ❔ ❌️ ⚠️ ❌ ❌️ ❌️
3 x86_64-dragonfly 🖥️🛠️ ✅ ✅ ✅ ✅ ❔ ❌️ ❌️
3 x86_64-haiku 🖥️⚡ ✅ ✅ ✅ ✅ ❔ ❌️ ❌️
3 x86_64-illumos 🖥️🛠️ ✅ ✅ ✅ ✅ ❔ ❌️ ❌️
3 x86_64-serenity 🖥️⚡ ✅ ✅ ✅ ✅ ❔ ❌️ ❌️

4 alpha-linux 📄 ❌️ ❔ ✅ ✅ ❌ ❌️ ❌️
4 alpha-netbsd 📄 ❌️ ❔ ✅ ✅ ❌ ❌️ ❌️
4 alpha-openbsd 📄 ❌️ ❔ ✅ ✅ ❌ ❌️ ❌️
4 arc[eb]-linux 📄 ❌️ ❔ ✅ ✅ ❌ ✅ ❌️
4 csky-linux 🖥️ ❌️ ❔ ✅ ✅ ❌ ✅ ❌️
4 hppa-linux 📄 ❌️ ❔ ❌️ ❌️ ❌ ❌️ ❌️
4 hppa-netbsd 📄 ❌️ ❔ ✅ ❌️ ❌ ❌️ ❌️
4 hppa-openbsd 📄 ❌️ ❔ ✅ ❌️ ❌ ❌️ ❌️
4 hppa64-linux 📄 ❌️ ❔ ❌️ ❌️ ❌ ❌️ ❌️
4 m68k-linux 🖥️ ❌️ ❔ ✅ ✅ ❌ ✅ ❌️
4 m68k-netbsd 🖥️ ❌️ ❔ ✅ ✅ ❌ ✅ ❌️
4 m88k-openbsd 📄 ❌️ ❔ ✅ ✅ ❌ ❌️ ❌️
4 microblaze[el]-linux 📄 ❌️ ❔ ✅ ❌️ ❌ ❌️ ❌️
4 mipsf32[el]-linux 📄 ✅ ✅ ✅ ✅ ❌ ✅ ❌
4 mipsf32[el]-netbsd 📄 ✅ ✅ ✅ ✅ ❌ ✅ ❌
4 or1k-linux 📄 ❌️ ❔ ✅ ✅ ❌ ❌️ ❌️
4 sh[eb]-linux 📄 ❌️ ❔ ✅ ❌️ ❌ ❌️ ❌️
4 sh[eb]-netbsd 📄 ❌️ ❔ ✅ ❌️ ❌ ❌️ ❌️
4 sh-openbsd 📄 ❌️ ❔ ✅ ❌️ ❌ ❌️ ❌️
4 sparc-linux 🖥️ ❌️ ❔ ✅ ✅ ❌ ✅ ❌️
4 sparc-netbsd 🖥️ ❌️ ❔ ✅ ❌️ ❌ ✅ ❌️
4 sparc64-netbsd 🖥️🛠️ ⚠️ ✅ ✅ ❌️ ✅ ✅ ❌️
4 xtensa[eb]-linux 🖥️ ❌️ ❔ ✅ ❌️ ❌ ❌️ ❌️

Version Requirements

The Zig standard library has minimum version requirements for some supported operating systems, which in turn affect the Zig compiler itself:

OS Version
Darwin 15.0+
DragonFly BSD 6.4+
FreeBSD 14.0+
Linux 5.10+
NetBSD 10.1+
OpenBSD 7.8+
Windows 10+

Additional Platforms

Zig also has varying levels of support for these targets, for which the tier system does not quite apply:

  • aarch64-driverkit
  • aarch64-freestanding
  • aarch64-fuchsia
  • aarch64-hurd
  • aarch64-managarm
  • aarch64-rtems
  • aarch64-switch
  • aarch64-uefi
  • aarch64_be-freestanding
  • alpha-freestanding
  • amdgcn-amdhsa
  • arc-freestanding
  • arceb-freestanding
  • arm-freestanding
  • armeb-freestanding
  • arm-3ds
  • arm-fuchsia
  • arm-gba
  • arm-rtems
  • arm-switch
  • arm-uefi
  • arm-vita
  • avr-freestanding
  • bpfeb-freestanding
  • bpfel-freestanding
  • csky-freestanding
  • ez80-freestanding
  • ez80-tios
  • hexagon-freestanding
  • hppa-freestanding
  • hppa64-freestanding
  • kvx-freestanding
  • lanai-freestanding
  • loongarch32-freestanding
  • loongarch32-uefi
  • loongarch64-freestanding
  • loongarch64-uefi
  • m68k-freestanding
  • m68k-rtems
  • m88k-freestanding
  • microblaze-freestanding
  • microblazeel-freestanding
  • mips-freestanding
  • mips-rtems
  • mipsel-freestanding
  • mipsel-psp
  • mipsel-psx
  • mipsel-rtems
  • mipsf32-freestanding
  • mipsf32-rtems
  • mipsf32el-freestanding
  • mipsf32el-rtems
  • mipsf64-freestanding
  • mipsf64el-freestanding
  • mipsf64n8-freestanding
  • mipsf64n8el-freestanding
  • mipsn8-freestanding
  • mipsn8el-freestanding
  • mipsr6-freestanding
  • mipsr6el-freestanding
  • mips64-freestanding
  • mips64el-freestanding
  • mips64n8-freestanding
  • mips64n8el-freestanding
  • mips64r6-freestanding
  • mips64r6el-freestanding
  • msp430-freestanding
  • nvptx-cuda
  • nvptx-nvcl
  • nvptx64-cuda
  • nvptx64-nvcl
  • or1k-freestanding
  • powerpc-freestanding
  • powerpc-rtems
  • powerpc-wiiu
  • powerpcle-freestanding
  • powerpc64-freestanding
  • powerpc64-ps3
  • powerpc64-rtems
  • powerpc64le-freestanding
  • propeller-freestanding
  • riscv32-freestanding
  • riscv32-rtems
  • riscv32-uefi
  • riscv32be-freestanding
  • riscv64-freestanding
  • riscv64-fuchsia
  • riscv64-hurd
  • riscv64-managarm
  • riscv64-rtems
  • riscv64-uefi
  • riscv64be-freestanding
  • s390x-freestanding
  • sh-freestanding
  • sheb-freestanding
  • sparc-freestanding
  • sparc-rtems
  • sparc64-freestanding
  • spirv32-opencl
  • spirv32-opengl
  • spirv32-vulkan
  • spirv64-amdhsa
  • spirv64-opencl
  • spirv64-vulkan
  • spork8-freestanding
  • thumb-freestanding
  • thumb-fuchsia
  • thumb-gba
  • thumb-rtems
  • thumb-vita
  • thumbeb-freestanding
  • thumbeb-rtems
  • ve-freestanding
  • wasm32-emscripten
  • wasm32-freestanding
  • wasm64-emscripten
  • wasm64-freestanding
  • x86-freestanding
  • x86-rtems
  • x86-uefi
  • x86_16-freestanding
  • x86_64-driverkit
  • x86_64-freestanding
  • x86_64-fuchsia
  • x86_64-hurd
  • x86_64-managarm
  • x86_64-plan9
  • x86_64-ps4
  • x86_64-ps5
  • x86_64-rtems
  • x86_64-uefi
  • x86c16-freestanding
  • xcore-freestanding
  • xtensa-freestanding
  • xtensaeb-freestanding
  • z80-freestanding
  • z80-tios