Skip to content

Commit 75d792a

Browse files
committed
cmake: Restrict MSVC-specific workaround to MSVC compiler only
This change enables compiling `fuzz/utxo_snapshot.cpp` with clang-cl.
1 parent b73ae18 commit 75d792a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/fuzz/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ add_executable(fuzz
129129
# Visual Studio 2022 version 17.12 introduced a bug
130130
# that causes an internal compiler error.
131131
# See: https://github.com/bitcoin/bitcoin/issues/31303
132-
$<$<VERSION_LESS:${MSVC_VERSION},1942>:utxo_snapshot.cpp>
132+
$<$<NOT:$<AND:$<CXX_COMPILER_ID:MSVC>,$<VERSION_GREATER_EQUAL:$<CXX_COMPILER_VERSION>,19.42>>>:utxo_snapshot.cpp>
133133
utxo_total_supply.cpp
134134
validation_load_mempool.cpp
135135
vecdeque.cpp

0 commit comments

Comments
 (0)