[all-commits] [llvm/llvm-project] 34a43f: [Clang] Ignore CLANG_DEFAULT_LINKER for custom-lin...

Simon Moll via All-commits all-commits at lists.llvm.org
Mon Dec 6 04:33:48 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 34a43f2115af79f896c889433c57f3b400e9f2c6
      https://github.com/llvm/llvm-project/commit/34a43f2115af79f896c889433c57f3b400e9f2c6
  Author: Simon Moll <simon.moll at emea.nec.com>
  Date:   2021-12-06 (Mon, 06 Dec 2021)

  Changed paths:
    M clang/include/clang/Driver/ToolChain.h
    M clang/lib/Driver/ToolChain.cpp
    M clang/test/Driver/ve-toolchain.c
    M clang/test/Driver/ve-toolchain.cpp

  Log Message:
  -----------
  [Clang] Ignore CLANG_DEFAULT_LINKER for custom-linker toolchains

Before, the CLANG_DEFAULT_LINKER cmake option was a global override for
the linker that shall be used on all toolchains.  The linker binary
specified that way may not be available on toolchains with custom
linkers. Eg, the only linker for VE is named 'nld' - any other linker
invalidates the toolchain.

This patch removes the hard override and instead lets the generic
toolchain implementation default to CLANG_DEFAULT_LINKER.  Toolchains
can now deviate with a custom linker name or deliberatly default to
CLANG_DEFAULT_LINKER.

Reviewed By: MaskRay, phosek

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




More information about the All-commits mailing list