francii added a comment.

In D137375#3943751 <https://reviews.llvm.org/D137375#3943751>, @cebowleratibm 
wrote:

> Looks good but I just want to confirm that the profiled -L paths are appended 
> in the correct order with respect to the non-profiled paths.

The linker gives priority to the libraries that are linked last, in the sense 
that if I link 2 directories with the same library, the library that gets 
linked against is chosen from the second directory, not the first. This patch 
makes the profiled libraries the last to be linked against, so that their 
linking overwrites the linking of their non-profiled counterparts.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137375/new/

https://reviews.llvm.org/D137375

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to