Closed frarees closed 3 years ago
Yeah I can reproduce. It works with zig 7.1, but is broken in 8.0.
See this issue: https://github.com/ziglang/zig/issues/7697
I was hoping that it's enough to remove the current header-search-path hacks in build.zig, but this didn't fix the issue, so currently I'm not entirely sure if the bug is actually fixed (I haven't spend much time with it yet though, for now I reverted to 7.1).
This should be fixed now in the branch zig-0.8.0
(the master branch works with 0.7.1, and once 0.8.0 becomes the new official stable version, I'll update the master branch).
Technically there's still an issue regarding macOS system- vs C-runtime-headers (see: https://github.com/ziglang/zig/issues/8360) but I added a workaround to sokol_audio.h (I don't include the CoreAudio system headers now, but instead embed the required declarations directly in the sokol_audio.h header).
zig
0.8.0-dev.1039+bea791b63
macOS 11.1 (Big Sur) Xcode 12.3