aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachinePassManager.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2021-05-06 23:05:39 -0700
committerPetr Hosek <phosek@google.com>2021-05-07 14:42:02 -0700
commit167906c10932f5eda97b480ee084b17746c362e7 (patch)
tree0fbcd3cd1148101a40c0f0dd0cb4ddb05f8da804 /llvm/lib/CodeGen/MachinePassManager.cpp
parentd5a70db1938c06380bdab033b7d47a7437914f4c (diff)
downloadllvm-167906c10932f5eda97b480ee084b17746c362e7.zip
llvm-167906c10932f5eda97b480ee084b17746c362e7.tar.gz
llvm-167906c10932f5eda97b480ee084b17746c362e7.tar.bz2
[BareMetal] Ensure that sysroot always comes after library paths
This addresses an issue introduced in D91559. We would invoke the compiler with -Lpath/to/lib --sysroot=path/to/sysroot where both locations contain libraries with the same name, but we expect linker to pick up the library in path/to/lib since that version is more specialized. This was the case before D91559 where the sysroot path would be ignored, but after that change linker would now pick up the library from the sysroot which resulted in unexpected behavior. The sysroot path should always come after any user provided library paths, followed by compiler runtime paths. We want for libraries in user provided library paths to always take precedence over sysroot libraries. This matches the behavior of other toolchains used with other targets. Differential Revision: https://reviews.llvm.org/D102049
Diffstat (limited to 'llvm/lib/CodeGen/MachinePassManager.cpp')
0 files changed, 0 insertions, 0 deletions