For cross compilation tooling, the strongest matches are zig-lang/zig (Zig doubles as a robust cross-compilation toolchain with built-in), cross-rs/cross (Cross provides container-based cross-compilation environments specifically tailored for Rust) and riscv-collab/riscv-gnu-toolchain (This project is a cross-compiler toolchain for C and). mitchellh/gox and dockcross/dockcross round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
Hand-picked cross-compilation tools to build binaries for multiple platforms from a single host. Compare top repositories and find the best fit.
Zig is a low-level systems programming language designed for writing high-performance software that interacts directly with hardware. It focuses on the transformation of source code into machine binaries for the execution of low-level operations. The project is distinguished by its native support for cross-compilation, allowing binaries for various operating systems and CPU architectures to be built from a single host. It provides direct interoperability with the C language, enabling the import of headers and function calls without a foreign function interface. The language utilizes manual m
Zig doubles as a robust cross-compilation toolchain with built-in multi-architecture target support and a bundled LLVM backend, though it is primarily a programming language rather than a dedicated build utility for existing C or Rust projects.
Cross is a container-based build environment and cross-compilation tool for Rust. It functions as a multi-architecture binary builder and testing framework, allowing users to compile crates into binaries for different operating systems and CPU architectures without installing local toolchains on the host system. The project distinguishes itself by using Docker images to provide consistent toolchains and system dependencies for foreign target architectures. It integrates the Zig toolchain within container images to facilitate compilation across various architectures and library versions, and i
Cross provides container-based cross-compilation environments specifically tailored for Rust and Cargo, making it an effective choice for building foreign-architecture binaries despite its language-specific scope.
This project is a cross-compiler toolchain for RISC-V software development. It provides the necessary components to compile C and C++ source code into executable binaries and libraries specifically for the RISC-V hardware architecture. The toolchain supports multi-architecture binary generation and multilib capabilities, allowing a single installation to target various instruction set specifications and bit-widths. It integrates with alternative compilers such as LLVM and Clang and includes a bootstrapped build pipeline to produce high-performance versions of the tools. The system covers bro
This project is a cross-compiler toolchain for C and C++ targeting RISC-V hardware, perfectly matching the target architecture goal though narrowly focused on a single processor family rather than being a universal cross-compilation suite.
Gox is a cross-platform build automator and command line tool designed for Go cross-compilation. It serves as a toolchain manager that builds and configures the necessary compilation tools and flags required to target diverse hardware platforms. The system automates the setup, installation, and provisioning of the assemblers and linkers needed for different operating systems and architectures. It manages the generation of executable binaries for multiple platforms in parallel, utilizing custom naming templates and linker flags to prepare software releases. The tool provides capabilities for
Gox is a cross-platform build tool specifically designed to automate Go binary generation across multiple architectures, making it a fitting utility for cross-compilation despite being tailored to a single language ecosystem rather than a general-purpose C/C++/LLVM toolchain.
Cross compiling toolchains in Docker images
Dockcross provides containerized cross-compilation toolchains packaged in Docker images, fulfilling the core cross-compilation requirement with multi-architecture support and containerized builds, though it lacks direct cargo integration out-of-the-box.
Cargo-zigbuild is a build tool that compiles Rust projects for different operating systems and architectures using the Zig compiler as an external linker. It functions as an environment-driven wrapper that intercepts standard build commands and injects the target configurations, paths, and flags required for cross-compilation without requiring complex native toolchains. The tool enables cross-platform compilation workflows and configures minimum required standard C library versions for Linux builds by appending version suffixes directly to target specifications. It also packages multi-archite
This cargo subcommand uses Zig as a drop-in linker to simplify Rust cross-compilation without complex toolchain setups, fitting the requested compilation utility category.
Llvm-mingw is an LLVM-based cross-compiler toolchain and MinGW-w64 development suite that builds native Windows executables from non-Windows operating systems using Clang and LLD. It compiles C and C++ source code into native portable executable binaries targeting multiple Windows CPU architectures from a single host environment. The toolchain supports configuring builds to use specific C runtime library targets for compatibility across different operating system versions. It includes capabilities for producing native Windows debug information and CodeView debug symbols alongside compiled bin
This project provides a specialized LLVM-based MinGW-w64 toolchain that allows you to compile Windows binaries from other operating systems, fulfilling the core cross-compilation capability despite lacking some of the broader multi-architecture and containerized features.
Docker images for compiling static Rust binaries using musl-cross
This project provides containerized Docker images specifically designed for cross-compiling static Rust binaries using musl-cross, fitting the cross-compilation toolchain category well despite lacking native integration for cmake or complex sysroot management.