Building Zig from source for dummies?

oh man, you lost me here :face_vomiting:
I feel like pu-erh tastes like (clean) diapers. Sanitary, but oddly disturbing, and definitely not food.

Anyway, I strongly recommend this workflow for you:

  1. How to build LLVM, libclang, and liblld from source 路 ziglang/zig Wiki 路 GitHub
  2. Contributing 路 ziglang/zig Wiki 路 GitHub

Building LLVM/Clang/LLD from source only takes about an hour and a few GiB, and it works every time. On the other hand, I can鈥檛 control what shenanigans Linux distributions get up to with how they organize all the files.

This is the workflow I use because it works everywhere, on every OS, every distro, every time. 1 hour to build LLVM, 10 minutes to rebuild with cmake after pulling, 1 minute for compiler rebuilds.

9 Likes