[all-commits] [llvm/llvm-project] 92126c: [LLD] [COFF] Prefer paths specified with -libpath:...
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Mon Jan 15 12:53:09 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 92126ca62e5764f9267524c18f78fe0b8c5751c0
https://github.com/llvm/llvm-project/commit/92126ca62e5764f9267524c18f78fe0b8c5751c0
Author: Martin Storsjö <martin at martin.st>
Date: 2024-01-15 (Mon, 15 Jan 2024)
Changed paths:
M lld/COFF/Driver.cpp
M lld/test/COFF/print-search-paths.s
Log Message:
-----------
[LLD] [COFF] Prefer paths specified with -libpath: over toolchain paths (#78039)
The main reason for adding the toolchain paths early was to prefer
libraries from the toolchain over ones from MSVC (primarily for
compiler-rt builtins). But if the user specifies a directory explicitly
with the -libpath: option, that should be preferred over the built-in
default paths.
This fixes an issue raised at
https://discourse.llvm.org/t/lld-prefers-system-llvm-libraries-to-user-provided-ones-on-windows/76148.
More information about the All-commits
mailing list