← All projects
Project record1 mention
Originally shared on Hacker News

toolchains_llvm_bootstrapped

A C/C++ cross-compilation toolchain for Bazel based on LLVM that compiles all target dependencies (CRT, libc, C++ stdlib, unwind libraries, etc.) from source. It cross-compiles C and C++ programs that use the libc (glibc or musl) as well as the C++ stdlib (libstdc++ or llvm-libc++) out of the box without any kind of sysroot.

Last shared
01 / The problem

What it addresses

Cross-compiling C/C++ programs normally requires a sysroot; this toolchain removes that need by building all target dependencies from source.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. toolchains_llvm_bootstrapped

    A C/C++ cross-compilation toolchain for Bazel based on LLVM that compiles all target dependencies (CRT, libc, C++ stdlib, unwind libraries, etc.) from source. It cross-compiles C and C++ programs that use the libc (glibc or musl) as well as the C++ stdlib (libstdc++ or llvm-libc++) out of the box without any kind of sysroot.

    Problem: Cross-compiling C/C++ programs normally requires a sysroot; this toolchain removes that need by building all target dependencies from source.

    Posted by @cerisier · Original source ↗

    Source text · @cerisier · · Source ↗

    A C/C++ cross compilation toolchain for Bazel based on LLVM that compiles all target dependencies (CRT, libc, C++ stdlib, unwind libraries etc...) from source. This means that it can cross-compile C and C++ programs that use the libc (glibc or musl) as well as the C++ stdlib (libstdc++ or llvm-libc++) out of the box without any kind of sysroot.