[all-commits] [llvm/llvm-project] 2ac7b1: [llvm] [cmake] Skip driver-related code unless LLV...

Michał Górny via All-commits all-commits at lists.llvm.org
Wed Jul 20 13:18:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ac7b142b12f66ce91c98177f8d7d942ed4cc94c
      https://github.com/llvm/llvm-project/commit/2ac7b142b12f66ce91c98177f8d7d942ed4cc94c
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2022-07-20 (Wed, 20 Jul 2022)

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

  Log Message:
  -----------
  [llvm] [cmake] Skip driver-related code unless LLVM_TOOL_LLVM_DRIVER_BUILD

Disable the code responsible for preparing object libraries
for the driver and filling LLVM_DRIVER_* properties
if LLVM_TOOL_LLVM_DRIVER_BUILD is disabled.  These properties are
consumed only by tools/llvm-driver, and so they are not used at all
if LLVM_TOOL_LLVM_DRIVER_BUILD is not enabled.  At the same time,
the related code breaks standalone clang builds against LLVM built
with LLVM_LINK_LLVM_DYLIB.

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




More information about the All-commits mailing list