Skip to content

Commit 8689628

Browse files
committed
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.
1 parent a8e2342 commit 8689628

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

cmake/bitcoin-build-config.h.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
/* Define this symbol to build code that uses ARMv8 SHA-NI intrinsics */
3333
#cmakedefine ENABLE_ARM_SHANI 1
3434

35-
/* Define this symbol to build code that uses AVX2 intrinsics */
36-
#cmakedefine ENABLE_AVX2 1
37-
3835
/* Define if external signer support is enabled */
3936
#cmakedefine ENABLE_EXTERNAL_SIGNER 1
4037

cmake/introspection.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ if(NOT MSVC)
184184
" HAVE_AVX2
185185
CXXFLAGS ${AVX2_CXXFLAGS}
186186
)
187-
set(ENABLE_AVX2 ${HAVE_AVX2})
188187

189188
# Check for x86 SHA-NI intrinsics.
190189
set(X86_SHANI_CXXFLAGS -msse4 -msha)

test/lint/test_runner/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,6 @@ fn lint_includes_build_config() -> LintResult {
619619
// These are exceptions which don't use bitcoin-build-config.h, rather CMakeLists.txt adds
620620
// these cppflags manually.
621621
":(exclude)src/crypto/sha256_arm_shani.cpp",
622-
":(exclude)src/crypto/sha256_avx2.cpp",
623622
":(exclude)src/crypto/sha256_x86_shani.cpp",
624623
]),
625624
)

0 commit comments

Comments
 (0)