[all-commits] [llvm/llvm-project] e879b2: [libcxxabi] [test] Depend on unwind only if available

Michał Górny via All-commits all-commits at lists.llvm.org
Tue Mar 8 21:34:37 PST 2022


  Branch: refs/heads/release/14.x
  Home:   https://github.com/llvm/llvm-project
  Commit: e879b2bf82ef2d096d2c0e5147ebac541a7b8828
      https://github.com/llvm/llvm-project/commit/e879b2bf82ef2d096d2c0e5147ebac541a7b8828
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2022-03-08 (Tue, 08 Mar 2022)

  Changed paths:
    M libcxxabi/test/CMakeLists.txt

  Log Message:
  -----------
  [libcxxabi] [test] Depend on unwind only if available

When building libcxxabi via LLVM_ENABLE_RUNTIMES=libcxxabi the CMake
invocation fails because of missing "unwind" target.  However,
if the extraneous dependency is removed, the library builds just fine
against installed libunwind and tests work fine.  To fix this,
add the dependency only if the target actually exists.

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

(cherry picked from commit 5244ef0faf5595495c1adedfa16c346d35caebdf)




More information about the All-commits mailing list