[all-commits] [llvm/llvm-project] 1c4867: [libunwind] Provide a way to conveniently install ...

PoYao Chang via All-commits all-commits at lists.llvm.org
Thu Dec 16 10:34:02 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c4867e6fc507fe6e81cfc0e3c7148307b4b7433
      https://github.com/llvm/llvm-project/commit/1c4867e6fc507fe6e81cfc0e3c7148307b4b7433
  Author: PoYao Chang <rZhBoYao at gmail.com>
  Date:   2021-12-16 (Thu, 16 Dec 2021)

  Changed paths:
    M libunwind/CMakeLists.txt
    A libunwind/include/CMakeLists.txt
    M libunwind/src/CMakeLists.txt

  Log Message:
  -----------
  [libunwind] Provide a way to conveniently install libunwind headers

This adds a CMake option (defaults to OFF to not be intrusive) to activate
2 new targets `install-unwind-headers` and `install-unwind-headers-stripped`.
So, for example:

  cmake -S runtimes -B build -G Ninja \
    -DLLVM_ENABLE_RUNTIMES='libunwind' \
    -DLIBUNWIND_INSTALL_HEADERS=ON

And then, `ninja -C build install-unwind` would install headers in addition
to good ol' dylibs and archives, i.e., targets `install-unwind*` `DEPENDS`
on `install-unwind-headers*`. On the other hand,
`ninja -C build install-unwind-headers` gives you headers only.

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




More information about the All-commits mailing list