[all-commits] [llvm/llvm-project] fd0b00: [clang] [unitttests] Fix linking Basic test to LLV...

Michał Górny via All-commits all-commits at lists.llvm.org
Mon Dec 13 14:01:44 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd0b00b5c60dcee1ac60e6121571e251fb242e63
      https://github.com/llvm/llvm-project/commit/fd0b00b5c60dcee1ac60e6121571e251fb242e63
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2021-12-13 (Mon, 13 Dec 2021)

  Changed paths:
    M clang/unittests/Basic/CMakeLists.txt

  Log Message:
  -----------
  [clang] [unitttests] Fix linking Basic test to LLVMTestingSupport

Link BasicTests via explicit target_link_libraries() rather than
clang_target_link_libraries() in order to fix linking when building
clang against libclang-cpp.  The latter requires all listed libraries
to be part of libclang-cpp and omits them if libclang-cpp is used.
However, LLVMTestingSupport is not part of libclang-cpp, so omitting it
causes undefined symbols.  Link to the library explicitly to follow suit
with the 7 other unittest programs.

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




More information about the All-commits mailing list