[all-commits] [llvm/llvm-project] af83a2: [lld] Fixes for unitests in standalone builds (#83...

Michał Górny via All-commits all-commits at lists.llvm.org
Sat Mar 2 11:08:56 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af83a2add5687d0c2f70e538612b7e86ccbf47a5
      https://github.com/llvm/llvm-project/commit/af83a2add5687d0c2f70e538612b7e86ccbf47a5
  Author: Michał Górny <mgorny at gentoo.org>
  Date:   2024-03-02 (Sat, 02 Mar 2024)

  Changed paths:
    M lld/CMakeLists.txt
    M lld/test/CMakeLists.txt
    M llvm/cmake/modules/AddLLVM.cmake

  Log Message:
  -----------
  [lld] Fixes for unitests in standalone builds (#83670)

1. Replace the obsolete `llvm_add_unittests()` CMake function with an
explicit check for `TARGET llvm_gtest`. This is more consistent with the
rest of the code, and it makes it possible to avoid checking out
`third-party` tree.
2. Add `LLDUnitTests` test dependency to standalone builds. It is
defined unconditionally, and actually necessary to ensure that unit
tests will be built.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list