Skip to content

Commit dc79b16

Browse files
committed
cmake: Make sure that ABI check is done only when using MSVC compiler
1 parent 172c7ac commit dc79b16

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

testing/tests.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,12 @@ if(NOT DEFINED ABI_CHECK AND MSVC AND MAINTAINER_MODE)
191191
set(ABI_CHECK 1)
192192
endif()
193193

194-
if(ABI_CHECK)
194+
# Note: The machinery we use to perform ABI checks works only
195+
# with the original MSVC compiler which can produce required
196+
# export map file, not with clang-cl (for which MSVC is also
197+
# defined)
198+
199+
if(ABI_CHECK AND MSVC AND NOT CLANG)
195200
add_abi_check()
196201
endif()
197202

0 commit comments

Comments
 (0)