Skip to main content

Module platform

Module platform 

Source
Expand description

Platform support validation with compile-time errors for unsupported targets.

BAML uses dynamic library loading (dlopen/LoadLibrary) to load the CFFI runtime. This module provides clear compile-time errors for platforms that cannot support this.

§Supported Platforms

  • macOS (x86_64, aarch64)
  • Linux (x86_64, aarch64) with glibc or musl
  • Windows (x86_64, aarch64) with MSVC

§Unsupported Platforms

Unsupported platforms will produce compile-time errors with detailed explanations and suggested workarounds.