[all-commits] [llvm/llvm-project] 7f7f4b: [Clang] Set -mlinker-version explicitly in the lto...

Petr Hosek via All-commits all-commits at lists.llvm.org
Mon Mar 21 18:34:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f7f4be78abcad4558367b22693ea55cfc5bb547
      https://github.com/llvm/llvm-project/commit/7f7f4be78abcad4558367b22693ea55cfc5bb547
  Author: Petr Hosek <phosek at google.com>
  Date:   2022-03-21 (Mon, 21 Mar 2022)

  Changed paths:
    M clang/test/Driver/darwin-ld-lto.c

  Log Message:
  -----------
  [Clang] Set -mlinker-version explicitly in the lto test

This test assumes that the driver will set -object_path_lto linker
flag and it requests the platform linker with -fuse-ld=. When lld is
used as the host linker, the host linker version is unset and so
Clang won't set -object_path_lto since that flag is set conditionally
only when linker version is at least 116. We set the linker version
explicitly to make sure that -object_path_lto is set. That approach
is already used elsewhere in the test.

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




More information about the All-commits mailing list