[all-commits] [llvm/llvm-project] 52d7c0: [cmake] Don't include symlinks to tools in Build-a...

zero9178 via All-commits all-commits at lists.llvm.org
Tue Aug 30 05:47:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 52d7c0b760a1443933a7196bb250e7ef5b6ea50d
      https://github.com/llvm/llvm-project/commit/52d7c0b760a1443933a7196bb250e7ef5b6ea50d
  Author: Markus Böck <markus.boeck02 at gmail.com>
  Date:   2022-08-30 (Tue, 30 Aug 2022)

  Changed paths:
    M llvm/cmake/modules/AddLLVM.cmake

  Log Message:
  -----------
  [cmake] Don't include symlinks to tools in Build-all when `LLVM_BUILD_TOOLS` is off

When building LLVM with LLVM_BUILD_TOOLS as OFF, numerous tools such as llvm-ar or llvm-objcopy end up still being built. The reason for this is that the symlink targets are unconditionally included in a Build-all build, causing the tool they're symlinking to be built after all.

This patch changes that behaviour to be more intuitive by only including the symlink in a Build-all build if the target they're linking to is also included.

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




More information about the All-commits mailing list