-
Notifications
You must be signed in to change notification settings - Fork 180
build: Make swift-crypto build on Windows #370
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
Conversation
* Add the Windows Arm64 assembly files to the CMake build. * Add appropriate CMake options for swift-crypto to build on Windows. Fixes apple#369
gen/bcm/sha512-armv8-win.S | ||
gen/bcm/vpaes-armv8-win.S | ||
gen/crypto/chacha-armv8-win.S | ||
gen/crypto/chacha20_poly1305_armv8-win.S) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These files are generated automatically by this script in swift-nio. I think this first needs a patch to swift-nio to ensure that this script can actually generate these two stanzas. Are you open to making that change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I edited the file here to be more friendly for the script. I opened apple/swift-nio#3275 but I could not figure out how to test it.
FYI I hit a compiler crash with this, see swiftlang/swift#82589 |
Very useful call-out, thankyou. |
I'm confused about why this is still failing. When I run it on my Linux box against this PR, it looks like it should pass:
|
When I run it I get a very simple diff. I'll try applying it and see what happens. |
Yup, that was it. |
Make swift-crypto build on Windows - [X] I've run tests to see all new and existing tests pass - [X] I've followed the code style of the rest of the project - [X] I've read the [Contribution Guidelines](CONTRIBUTING.md) - [X] I've updated the documentation if necessary - [N/A] I've run `.script/generate_boilerplate_files_with_gyb` and included updated generated files in a commit of this pull request Currently, swift-crypto on the main branch does not build on Windows. * Add the Windows Arm64 assembly files to the CMake build. * Add appropriate CMake options for swift-crypto to build on Windows. swift-crypto can be built on Windows from main Fixes apple#369 --------- Co-authored-by: Cory Benfield <[email protected]> (cherry picked from commit 9934678)
Make swift-crypto build on Windows - [X] I've run tests to see all new and existing tests pass - [X] I've followed the code style of the rest of the project - [X] I've read the [Contribution Guidelines](CONTRIBUTING.md) - [X] I've updated the documentation if necessary - [N/A] I've run `.script/generate_boilerplate_files_with_gyb` and included updated generated files in a commit of this pull request Currently, swift-crypto on the main branch does not build on Windows. * Add the Windows Arm64 assembly files to the CMake build. * Add appropriate CMake options for swift-crypto to build on Windows. swift-crypto can be built on Windows from main Fixes apple#369 --------- Co-authored-by: Cory Benfield <[email protected]> (cherry picked from commit 9934678)
Make swift-crypto build on Windows - [X] I've run tests to see all new and existing tests pass - [X] I've followed the code style of the rest of the project - [X] I've read the [Contribution Guidelines](CONTRIBUTING.md) - [X] I've updated the documentation if necessary - [N/A] I've run `.script/generate_boilerplate_files_with_gyb` and included updated generated files in a commit of this pull request Currently, swift-crypto on the main branch does not build on Windows. * Add the Windows Arm64 assembly files to the CMake build. * Add appropriate CMake options for swift-crypto to build on Windows. swift-crypto can be built on Windows from main Fixes #369 --------- Co-authored-by: Cory Benfield <[email protected]> (cherry picked from commit 9934678) (#370) Co-authored-by: Fabrice de Gans <[email protected]>
Make swift-crypto build on Windows
Checklist
If you've made changes to
gyb
files.script/generate_boilerplate_files_with_gyb
and included updated generated files in a commit of this pull requestMotivation:
Currently, swift-crypto on the main branch does not build on Windows.
Modifications:
Result:
swift-crypto can be built on Windows from main
Fixes #369