Revert "[Clang] Don't build static analyzer if disabled" (#212836)

Breaks unusual build configs where clang-tidy static analyzer is enabled
while clang static analyzer is disabled.

Reverts llvm/llvm-project#212024
This commit is contained in:
Alexis Engelke 2026-07-29 20:43:56 +02:00 committed by GitHub
parent a9749e8e26
commit 499db7987c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,9 +24,7 @@ add_subdirectory(Index)
add_subdirectory(IndexSerialization)
add_subdirectory(InstallAPI)
add_subdirectory(ScalableStaticAnalysis)
if(CLANG_ENABLE_STATIC_ANALYZER)
add_subdirectory(StaticAnalyzer)
endif()
add_subdirectory(StaticAnalyzer)
add_subdirectory(Format)
if(CLANG_INCLUDE_TESTS)
add_subdirectory(Testing)