Skip to content

Fix aws-crt-swift by moving PKCS#11 headers #473

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

Merged
merged 4 commits into from
Feb 7, 2022
Merged

Conversation

graebm
Copy link
Contributor

@graebm graebm commented Feb 7, 2022

Issue:
aws-crt-swift is breaking when Swift tries to compile the official PKCS#11 headers.

These headers weird and need a bunch of things #defined before they're #included. Seems like Swift is trying to compile/parse each individual header under include/..., even if we add these files to the exclude list

Description of changes:
Move official PKCS#11 headers (and all files that include them) out from under the include/... folder.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

It seems like Swift is trying to individually process these files because they're under include/, even if we we add these files to the `exclude` list.

The official PKCS#11 headers cannot be parse individually. The user is required to `#define` a few things before `#include`ing them.

Moving these headers out from under the the include/ folder fixes the issue
@graebm graebm enabled auto-merge (squash) February 7, 2022 17:31
@graebm graebm merged commit fb9d38b into main Feb 7, 2022
@graebm graebm deleted the hide-pkcs11-headers branch February 7, 2022 17:42
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