cmake: Remove ENABLE_X86_SHANI from bitcoin-build-config.h

`ENABLE_X86_SHANI` is already conditionally defined for the
`bitcoin_crypto` target, so defining it in `bitcoin-build-config.h` is
redundant.
This commit is contained in:
Hennadii Stepanov
2025-05-18 16:13:32 +01:00
parent 8689628e2e
commit 1e900528d2
3 changed files with 0 additions and 5 deletions

View File

@@ -42,9 +42,6 @@
/* Define to 1 to enable wallet functions. */
#cmakedefine ENABLE_WALLET 1
/* Define this symbol to build code that uses x86 SHA-NI intrinsics */
#cmakedefine ENABLE_X86_SHANI 1
/* Define to 1 if you have the declaration of `fork', and to 0 if you don't.
*/
#cmakedefine01 HAVE_DECL_FORK

View File

@@ -200,7 +200,6 @@ if(NOT MSVC)
" HAVE_X86_SHANI
CXXFLAGS ${X86_SHANI_CXXFLAGS}
)
set(ENABLE_X86_SHANI ${HAVE_X86_SHANI})
# Check for ARMv8 SHA-NI intrinsics.
set(ARM_SHANI_CXXFLAGS -march=armv8-a+crypto)

View File

@@ -619,7 +619,6 @@ fn lint_includes_build_config() -> LintResult {
// These are exceptions which don't use bitcoin-build-config.h, rather CMakeLists.txt adds
// these cppflags manually.
":(exclude)src/crypto/sha256_arm_shani.cpp",
":(exclude)src/crypto/sha256_x86_shani.cpp",
]),
)
.expect("grep failed");