Building Zig from source for dummies?

If you build LLVM yourself from source you’re not exposed all that much to distribution shenanigans. It’s generally not hard to get your hands on the dependencies required to build LLVM and run the 3 commands required to make it happen.

If you try to use the LLVM shipped by your distro’s package manager then yes your mileage may vary, for example in the past it happened to me a few times that brew would package LLVM in some weird way that caused issues when compiling Zig.

2 Likes