Skip to content

Add darwin build support - #1

Draft
rsafier wants to merge 2 commits into
reardencode:masterfrom
rsafier:feature/metal-support
Draft

Add darwin build support#1
rsafier wants to merge 2 commits into
reardencode:masterfrom
rsafier:feature/metal-support

Conversation

@rsafier

@rsafier rsafier commented Aug 7, 2026

Copy link
Copy Markdown

Allow to compile on darwin.

Tested on: aarch64-darwin

rsafier added 2 commits August 7, 2026 10:19
io_uring call sites were already #[cfg(target_os = "linux")]-gated with
darwin fallbacks, but the crate dependency was unconditional so cargo
compiled the Linux-only io-uring crate on macOS and failed. Move it to a
target-gated dependency and cfg-gate the remaining Linux-only items
(RING_ENTRIES, Path import, dontcache fields) that -Dwarnings flags as
dead code on darwin. Cargo.lock is unchanged.
Add x86_64-darwin/aarch64-darwin to the flake systems so 'nix build'
works on Macs. The static musl package stays the default on Linux;
darwin defaults to a native stdenv build (musl is Linux-only). Widen
meta.platforms accordingly and point checks at the per-system default.
@rsafier
rsafier marked this pull request as draft August 7, 2026 14:30
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