[all-commits] [llvm/llvm-project] f906fd: [LLD] [COFF] Restore the current dir as the first ...
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Mon Oct 2 03:47:43 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f906fd53b5ce12f07aec394ddf900c7f9f583405
https://github.com/llvm/llvm-project/commit/f906fd53b5ce12f07aec394ddf900c7f9f583405
Author: Martin Storsjö <martin at martin.st>
Date: 2023-10-02 (Mon, 02 Oct 2023)
Changed paths:
M lld/COFF/Driver.cpp
M lld/test/COFF/print-search-paths.s
Log Message:
-----------
[LLD] [COFF] Restore the current dir as the first entry in the search path (#67857)
Before af744f0b84e2b6410be65277068b9033124c73b2, the first entry
among the search paths was the empty string, indicating searching
in (or starting from) the current directory. After
af744f0b84e2b6410be65277068b9033124c73b2, the toolchain/clang
specific lib directories were added at the head of the search path.
This would cause lookups of literal file names or relative paths
to match paths in the toolchain, if there are coincidental files
with similar names there, even if they would be find in the current
directory as well.
Change addClangLibSearchPaths to append to the list like all other
operations on searchPaths - but move the invocation of the
function to the right place in the sequence.
This fixes #67779.
More information about the All-commits
mailing list