mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-15 16:38:23 +01:00
cmake: Remove ENABLE_AVX2 from bitcoin-build-config.h
`ENABLE_AVX2` is already conditionally defined for the `bitcoin_crypto` target, so defining it in `bitcoin-build-config.h` is redundant.
This commit is contained in:
@@ -32,9 +32,6 @@
|
|||||||
/* Define this symbol to build code that uses ARMv8 SHA-NI intrinsics */
|
/* Define this symbol to build code that uses ARMv8 SHA-NI intrinsics */
|
||||||
#cmakedefine ENABLE_ARM_SHANI 1
|
#cmakedefine ENABLE_ARM_SHANI 1
|
||||||
|
|
||||||
/* Define this symbol to build code that uses AVX2 intrinsics */
|
|
||||||
#cmakedefine ENABLE_AVX2 1
|
|
||||||
|
|
||||||
/* Define if external signer support is enabled */
|
/* Define if external signer support is enabled */
|
||||||
#cmakedefine ENABLE_EXTERNAL_SIGNER 1
|
#cmakedefine ENABLE_EXTERNAL_SIGNER 1
|
||||||
|
|
||||||
|
|||||||
@@ -184,7 +184,6 @@ if(NOT MSVC)
|
|||||||
" HAVE_AVX2
|
" HAVE_AVX2
|
||||||
CXXFLAGS ${AVX2_CXXFLAGS}
|
CXXFLAGS ${AVX2_CXXFLAGS}
|
||||||
)
|
)
|
||||||
set(ENABLE_AVX2 ${HAVE_AVX2})
|
|
||||||
|
|
||||||
# Check for x86 SHA-NI intrinsics.
|
# Check for x86 SHA-NI intrinsics.
|
||||||
set(X86_SHANI_CXXFLAGS -msse4 -msha)
|
set(X86_SHANI_CXXFLAGS -msse4 -msha)
|
||||||
|
|||||||
@@ -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 are exceptions which don't use bitcoin-build-config.h, rather CMakeLists.txt adds
|
||||||
// these cppflags manually.
|
// these cppflags manually.
|
||||||
":(exclude)src/crypto/sha256_arm_shani.cpp",
|
":(exclude)src/crypto/sha256_arm_shani.cpp",
|
||||||
":(exclude)src/crypto/sha256_avx2.cpp",
|
|
||||||
":(exclude)src/crypto/sha256_x86_shani.cpp",
|
":(exclude)src/crypto/sha256_x86_shani.cpp",
|
||||||
]),
|
]),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user