Skip to content

Fix macOS Zig SDK fallback for Homebrew#2938

Merged
plajjan merged 1 commit into
mainfrom
fix-homebrew-macos-zig-sdk
Jun 17, 2026
Merged

Fix macOS Zig SDK fallback for Homebrew#2938
plajjan merged 1 commit into
mainfrom
fix-homebrew-macos-zig-sdk

Conversation

@plajjan

@plajjan plajjan commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

The v0.28.0 Homebrew source build can still let Zig see the macOS 26 Command Line Tools SDK when the runner already provides DEVELOPER_DIR. That bypasses the existing fallback and makes the Formula test fail while compiling C++ dependencies through bundled Zig.

This forces the fallback for spawned Zig builds on macOS and applies the same rule to the direct actondb build. It also keeps the in-repo Homebrew Formula aligned with the tap by installing lsp-server-acton explicitly and keeping dist/bin out of prefix.install.

Acton already works around the macOS 26 Command Line Tools SDK by
pointing Zig at /dev/null for DEVELOPER_DIR. The runtime compile
path only did that when DEVELOPER_DIR was unset, though. Homebrew
runners can provide a Command Line Tools value, so the installed
compiler still let Zig see the macOS 26 SDK and fail while compiling
C++ dependencies.

Force the fallback for all spawned Zig builds on macOS and apply the
same rule to the direct actondb build. Keep the source Homebrew
Formula aligned with the tap by installing lsp-server-acton explicitly
and excluding dist/bin from prefix.install.
@plajjan plajjan marked this pull request as ready for review June 16, 2026 19:02
@plajjan plajjan enabled auto-merge June 16, 2026 19:02
@plajjan plajjan merged commit c1818f1 into main Jun 17, 2026
182 of 186 checks passed
@plajjan plajjan deleted the fix-homebrew-macos-zig-sdk branch June 17, 2026 20:29
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.

1 participant