[all-commits] [llvm/llvm-project] 2d3953: [cmake] Make LLVM_ENABLE_LLD=ON work better on macOS

Nico Weber via All-commits all-commits at lists.llvm.org
Tue Nov 2 10:35:37 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2d3953499c8ca73c12e9417f5c4516c8a930a689
      https://github.com/llvm/llvm-project/commit/2d3953499c8ca73c12e9417f5c4516c8a930a689
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-11-02 (Tue, 02 Nov 2021)

  Changed paths:
    M clang/tools/driver/CMakeLists.txt
    M llvm/cmake/modules/AddLLVM.cmake

  Log Message:
  -----------
  [cmake] Make LLVM_ENABLE_LLD=ON work better on macOS

LLVM_LINKER_IS_LLD is now set with LLVM_ENABLE_LLD=ON (or LLVM_USER_LINKER=lld)
even on APPLE, and we pass -Wl,-order_file when LLVM_LINKER_IS_LLD on APPLE
too.

To make this straightforward, change the linker detection logic to go through
the compiler driver on APPLE like on the other platforms.

No intended behavior change if LLVM_ENABLE_LLD isn't set.

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




More information about the All-commits mailing list