Skip to content

Commit cc21af7

Browse files
committed
clang_tidy.cmake: only specify -enable-check-profile when supported
1 parent 67606e6 commit cc21af7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cmake/clang_tidy.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ if(RUN_CLANG_TIDY_NAMES)
2525
endif()
2626
message(STATUS "NPROC=${NPROC}")
2727

28-
# TODO: introduced in run-clang-tidy-22
29-
set(CLANG_TIDY_CONFIG "-enable-check-profile")
28+
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 22)
29+
set(CLANG_TIDY_CONFIG "-enable-check-profile")
30+
endif()
3031

3132
# most of these are disabled because they are too noisy in our code
3233
# clang-analyzer-core.CallAndMessage

0 commit comments

Comments
 (0)