Skip to content

Commit ef4d3df

Browse files
authored
Merge pull request #6 from LykosAI/fix-macos-x64-openssl
Vendor OpenSSL on macOS (x86_64 cross-compile fix)
2 parents ea74472 + 4069411 commit ef4d3df

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

src-tauri/Cargo.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@ rand = "0.8"
3636

3737
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
3838
tauri-plugin-updater = "2"
39+
40+
# macOS release builds cross-compile x86_64 on ARM runners, where pkg-config
41+
# can't provide OpenSSL for the foreign target — build it from source instead.
42+
# Scoped to macOS so Linux keeps linking the system OpenSSL.
43+
[target.'cfg(target_os = "macos")'.dependencies]
44+
openssl-sys = { version = "0.9", features = ["vendored"] }

0 commit comments

Comments
 (0)