Skip to content

Commit e71c4f4

Browse files
committed
fix: patch aws-lc-sys with iOS cross-compilation fix
aws-lc-sys 0.38.0 fails to compile urandom.c for aarch64-apple-ios on Xcode 16.2 because target.h doesn't include <TargetConditionals.h>, so OPENSSL_IOS is never defined and the build falls through to the Linux urandom path. Patch points at lukejmann/aws-lc-rs#fix/ios-cross-compilation which: 1. Adds #include <TargetConditionals.h> to target.h (root cause) 2. Guards RNDGETENTCNT/ioctl in urandom.c behind OPENSSL_LINUX (defensive) Made-with: Cursor
1 parent d71e976 commit e71c4f4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ nursery = { level = "deny", priority = -1 }
3737
missing_docs = "deny"
3838
dead_code = "deny"
3939

40+
[patch.crates-io]
41+
aws-lc-sys = { git = "https://github.com/lukejmann/aws-lc-rs.git", branch = "fix/ios-cross-compilation" }
42+
4043
[profile.release]
4144
opt-level = 'z' # Optimize for size.
4245
lto = true # Enable Link Time Optimization.

0 commit comments

Comments
 (0)