From 9a3eeae3218f0f8a082d8aabdf4f26e30a86170d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 25 Mar 2022 21:22:34 +0200 Subject: [PATCH] [clang-tidy] Fix the condition for building CTTestTidyModule 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 --- clang-tools-extra/test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/test/CMakeLists.txt b/clang-tools-extra/test/CMakeLists.txt index d64366cba2328..2cdf186081efc 100644 --- a/clang-tools-extra/test/CMakeLists.txt +++ b/clang-tools-extra/test/CMakeLists.txt @@ -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