[all-commits] [llvm/llvm-project] af744f: [LLD][COFF] Add LLVM toolchain library paths by de...

Tobias Hieta via All-commits all-commits at lists.llvm.org
Fri Jul 14 05:38:21 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af744f0b84e2b6410be65277068b9033124c73b2
  Author: Tobias Hieta <tobias.hieta at ubisoft.com>
  Date:   2023-07-14 (Fri, 14 Jul 2023)

  Changed paths:
    M clang/lib/Driver/Driver.cpp
    M lld/COFF/Driver.cpp
    M lld/COFF/Driver.h
    M lld/docs/ReleaseNotes.rst
    M lld/test/COFF/print-search-paths.s

  Log Message:
  [LLD][COFF] Add LLVM toolchain library paths by default.

We want lld-link to automatically find compiler-rt's and
libc++ when it's in the same directory as the rest of the
toolchain. This is because on Windows linking isn't done
via the clang driver - but instead invoked directly.

This prepends: <llvm>/lib <llvm>/lib/clang/XX/lib and
<llvm>/lib/clang/XX/lib/windows automatically to the library
search paths.

Related to #63827

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

More information about the All-commits mailing list