Skip to content

Commit

Permalink
[clang-tidy] Fix the condition for building CTTestTidyModule
Browse files Browse the repository at this point in the history
This is the correct intended condition; the problematic case where
we don't want to try to build the plugin is "WIN32 AND LLVM_LINK_LLVM_DYLIB"
and thus the negation is "NOT WIN32 OR NOT LLVM_LINK_LLVM_DYLIB".

Differential Revision: https://reviews.llvm.org/D121687
  • Loading branch information
mstorsjo committed Mar 25, 2022
1 parent 57ee624 commit 9a3eeae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang-tools-extra/test/CMakeLists.txt
Expand Up @@ -73,7 +73,7 @@ foreach(dep ${LLVM_UTILS_DEPS})
endforeach()

if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
if (NOT WIN32 AND NOT LLVM_LINK_LLVM_DYLIB)
if (NOT WIN32 OR NOT LLVM_LINK_LLVM_DYLIB)
llvm_add_library(
CTTestTidyModule
MODULE clang-tidy/CTTestTidyModule.cpp
Expand Down

0 comments on commit 9a3eeae

Please sign in to comment.