aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2023-10-02 13:47:30 +0300
committerGitHub <noreply@github.com>2023-10-02 13:47:30 +0300
commitf906fd53b5ce12f07aec394ddf900c7f9f583405 (patch)
treeb35528a61b19290e34c665a6efd6ff11403c5279 /flang/lib/Frontend/CompilerInvocation.cpp
parent7d7d9e462a8983d71e01786c9ad61a976ff10e8a (diff)
downloadllvm-f906fd53b5ce12f07aec394ddf900c7f9f583405.zip
llvm-f906fd53b5ce12f07aec394ddf900c7f9f583405.tar.gz
llvm-f906fd53b5ce12f07aec394ddf900c7f9f583405.tar.bz2
[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.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions