aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2022-01-28 01:50:49 -0800
committerPetr Hosek <phosek@google.com>2022-01-28 20:46:01 -0800
commit71dcd9bd049e3cd1faa95ef085b9bbd6c2450f5a (patch)
treeee1be5121dd8c9e2ee98c9bf679ef51ef7a689bf /clang/lib/Frontend/InitPreprocessor.cpp
parent3b194ca7ab37a212ab54e698d22415753dc6a197 (diff)
downloadllvm-71dcd9bd049e3cd1faa95ef085b9bbd6c2450f5a.zip
llvm-71dcd9bd049e3cd1faa95ef085b9bbd6c2450f5a.tar.gz
llvm-71dcd9bd049e3cd1faa95ef085b9bbd6c2450f5a.tar.bz2
[ELF] Change the search order for dependent libraries
When processing dependent libraries, if there's a directory of the same name as the library being searched for, either in the current directory or earlier in the search order, LLD will try to open it and report an error. This is because LLD uses file existence check. To address this issue we reverse the order, searching the library by basename first and only considering search paths later, and current directory last. Differential Revision: https://reviews.llvm.org/D118498
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions