Skip to content

Commit 27b2d2e

Browse files
committed
Checking for the wrong compiler name on macOS.
1 parent 982efa0 commit 27b2d2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

toolchains/coverage.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if(ENABLE_COVERAGE)
66
add_compile_options(-O0 -g --coverage)
77
add_link_options(--coverage)
88

9-
elseif(CMAKE_C_COMPILER_ID STREQUAL "Clang")
9+
elseif(CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "AppleClang")
1010
message(STATUS "Enabling Clang coverage with llvm-cov")
1111
# Use GCC-style coverage for lcov compatibility
1212
add_compile_options(-O0 -g --coverage)

0 commit comments

Comments
 (0)