4 Comments
User's avatar
Corentin's avatar

FYI several projects provide lightweight prebuilts LLVM distributions. 2 of which (one is my own) provides fully static builds on linux:

- https://github.com/dzbarsky/static-clang/releases/tag/v20.1.1

- https://github.com/cerisier/toolchains_cc/releases/tag/bootstrap%2Fllvm%2F20.1.1-bootstrapped

Respectively ~70MB and ~50MB

Expand full comment
AlexDenisov's avatar

That's very cool, especially the size. I guess it only contains the toolchain files, and not the libraries themselves?

Expand full comment
Corentin's avatar

For now yes. Only toolchain (llvm-* + clang) binaries + builtin headers + a few prebuilts (libcompiler_rt) but we're working on adding more. The binaries are fully stripped and LTO'ed in the latest release. That's because those toolchains are for use with bazel and especially bazel cross-compilation toolchains which would build everything from scratch anyway !

Expand full comment
AlexDenisov's avatar

I can totally see the appeal, I'm currently using toolchains_llvm and seeing the downloading/extraction of the whole LLVM just for the toolchain is a painful experience!

Wondering if LLVM folks would consider precompiling just the toolchains and "shipping" them next to the current fully pre-compiled builds? 🤔

Expand full comment