Skip to content

Work around macOS 26.4 CLI tools breaking Zig#2715

Merged
mzagozen merged 1 commit into
mainfrom
macos-tahoe-workaround
Apr 8, 2026
Merged

Work around macOS 26.4 CLI tools breaking Zig#2715
mzagozen merged 1 commit into
mainfrom
macos-tahoe-workaround

Conversation

@mzagozen

@mzagozen mzagozen commented Apr 8, 2026

Copy link
Copy Markdown
Collaborator

Set DEVELOPER_DIR=/dev/null in the zig build environment on macOS to prevent Zig from using Xcode's broken SDK stubs. This makes Zig fall back to its own bundled libraries instead. Workaround for #2714.

See https://codeberg.org/ziglang/zig/issues/31658. This will become unnecessary with Zig 0.16.x.

Set DEVELOPER_DIR=/dev/null in the zig build environment on macOS
to prevent Zig from using Xcode's broken SDK stubs. This makes Zig
fall back to its own bundled libraries instead.

Respects user override if DEVELOPER_DIR is already set.

See https://codeberg.org/ziglang/zig/issues/31658. This will become
unnecessary with Zig 0.16.x.
@plajjan

plajjan commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Heh cool, I too saw that comment and was thinking the same thing. Did you also reproduce and try this out yourself or trusted the comment? ;)

@mzagozen

mzagozen commented Apr 8, 2026

Copy link
Copy Markdown
Collaborator Author

Yes, I can avoid the crash on my machine after upgrading to latest Xcode tools.

@mzagozen mzagozen merged commit 9cccb79 into main Apr 8, 2026
43 of 44 checks passed
@mzagozen mzagozen deleted the macos-tahoe-workaround branch April 8, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants