Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pqcrypto-internals build.rs to support iOS SDK 18.1 #72

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gridbox
Copy link

@gridbox gridbox commented Jan 2, 2025

I was still experiencing sha3 error even with version 0.2.7. I noticed the OP in #68 was using iOS SDK 17.2. I have since updated to Xcode 16 which is at iOS SDK 18.1 and the build flag did not fix it. However, through some searching I found that updating the build flag to -march=armv8-a+sha3 seems to work.

Unfortunately, I'm not using the library directly but it is an indirect dependency of another dependency that I am using to build a Flutter mobile app backed by a custom Rust library. I'm not sure if my fix is universal or is just appropriate for my specific use case.

LukasPukenis added a commit to NordSecurity/libtelio that referenced this pull request Jan 9, 2025
Darwin runners fail after the update of this crate
which is a transient dependency. Using `[patch]` doesn't
update properly so this is a manual attempt.

There's outstanding PR which claims to fix the issue:
rustpq/pqcrypto#72

The error in question from compilation:
```
cargo:warning=<instantiation>:79:5: error: instruction requires: sha3
```

Signed-off-by: Lukas Pukenis <[email protected]>
LukasPukenis added a commit to NordSecurity/libtelio that referenced this pull request Jan 9, 2025
Darwin runners fail after the update of this crate
which is a transient dependency. Using `[patch]` doesn't
update properly so this is a manual attempt.

There's outstanding PR which claims to fix the issue:
rustpq/pqcrypto#72

The error in question from compilation:
```
cargo:warning=<instantiation>:79:5: error: instruction requires: sha3
```

Signed-off-by: Lukas Pukenis <[email protected]>
@thomwiggers thomwiggers enabled auto-merge (squash) January 19, 2025 15:18
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