[all-commits] [llvm/llvm-project] 3e7a8a: [clang-tidy] Don't try to build CTTestTidyModule f...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Tue Mar 22 02:09:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e7a8aab759a9bdf90f35a60ea6e96ec64e36cb9
      https://github.com/llvm/llvm-project/commit/3e7a8aab759a9bdf90f35a60ea6e96ec64e36cb9
  Author: Martin Storsjö <martin at martin.st>
  Date:   2022-03-22 (Tue, 22 Mar 2022)

  Changed paths:
    M clang-tools-extra/test/CMakeLists.txt

  Log Message:
  -----------
  [clang-tidy] Don't try to build CTTestTidyModule for Windows with dylibs

In MinGW mode, it's possible to build LLVM/Clang with
LLVM_LINK_LLVM_DYLIB (which implicitly enables plugins too). Other
existing ways of building plugins on Windows is to build with
LLVM_EXPORT_SYMBOLS_FOR_PLUGINS, where each executable exports its
symbols.

With LLVM_LINK_LLVM_DYLIB, we can't generally skip building plugins
even if they are set up with PLUGIN_TOOL, as some plugins (e.g.
under clang/examples) set up that way do build properly (as
they manually call clang_target_link_libraries, which links in the
libclang-cpp.dll dylib).

For CTTestTidyModule, there's no corresponding dylib that would
provide the same exports.

Differential Revision: https://reviews.llvm.org/D121687




More information about the All-commits mailing list