Skip to content

Vendor OpenSSL on macOS (x86_64 cross-compile fix) - #6

Merged
mohnjiles merged 1 commit into
mainfrom
fix-macos-x64-openssl
Jul 25, 2026
Merged

Vendor OpenSSL on macOS (x86_64 cross-compile fix)#6
mohnjiles merged 1 commit into
mainfrom
fix-macos-x64-openssl

Conversation

@mohnjiles

Copy link
Copy Markdown
Member

Summary

Second macOS release failure, different cause: the heap fix worked (frontend built), but the x86_64-apple-darwin job then failed compiling openssl-sys with $HOST = aarch64-apple-darwin / $TARGET = x86_64-apple-darwinmacos-latest runners are ARM Macs, so the Intel build is a cross-compile, and pkg-config will not serve the host ARM OpenSSL for a foreign target. (curl → curl-sys → openssl-sys is the dependency path; openssl-sys is not in the Windows graph at all.)

Fix: vendored OpenSSL on macOS only ([target.'cfg(target_os = "macos")'] openssl-sys = { features = ["vendored"] }) — openssl-sys builds OpenSSL from source for whichever target is being compiled. Linux keeps linking system OpenSSL unchanged; adds a few minutes to the mac jobs.

Test plan

  • cargo check still clean on Windows; openssl-src resolved into Cargo.lock
  • Re-tagged v0.3.0 builds green on all four platforms

🤖 Generated with Claude Code

GitHub macos-latest runners are ARM, so the x86_64-apple-darwin
release build is a cross-compile and openssl-sys (via curl-sys) fails:
pkg-config refuses to provide the host ARM OpenSSL for a foreign
target. Build OpenSSL from source on macOS instead, scoped so the
Linux build keeps linking the system library as before.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@mohnjiles
mohnjiles enabled auto-merge July 25, 2026 05:43
@mohnjiles
mohnjiles merged commit ef4d3df into main Jul 25, 2026
2 checks passed
@mohnjiles
mohnjiles deleted the fix-macos-x64-openssl branch July 25, 2026 05:44
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