On macOS, homebrew version of llvm must be used instead of xcode's one: > brew install llvm Have to run a local http server to serve files: > python3 -m http.server brew llvm toolchain seems to be broken and does not find open gl header files, and trying to include them from the framework path in /applications/xcode/ etc creates a bunch of other errors, so the workaround was to download mesa openGL headers, and tweak glext.h so that it includes stdint.h instead of inttypes.h (because brew's llvm can't seem to find this one). This was annoying as fuck. Zig cc seem to have everything needed but doesn't recognize --export-all and such, so I could'nt find a way to use it.