Skip to content

crypto/sha256: Use pragmas to enforce necessary intrinsics for GCC and Clang #102

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

Open
wants to merge 2 commits into
base: __branch_29
Choose a base branch
from

Conversation

luke-jr
Copy link
Collaborator

@luke-jr luke-jr commented Apr 4, 2025

CMake port of bitcoin#13789

Instead of disabling optimised crypto, bypass the user-provided CXXFLAGS (which still instruct the compiler how to handle unconditional code) when possible and check at runtime.

luke-jr added 2 commits April 4, 2025 01:05
…d Clang

This avoids problems when the user specifies CXXFLAGS explicitly disabling the relevant optimisations.
@luke-jr luke-jr added this to the 29.0 milestone Apr 4, 2025
@luke-jr luke-jr mentioned this pull request Apr 4, 2025
18 tasks
@luke-jr luke-jr added the rebase Existing Knots patches, rebased for the latest codebase label May 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rebase Existing Knots patches, rebased for the latest codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant