[PATCH] D45639: [Driver] Support default libc++ library location on Darwin

Louis Dionne via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 16 06:51:39 PDT 2021


ldionne accepted this revision.
ldionne added a comment.
This revision is now accepted and ready to land.

In D45639#2693706 <https://reviews.llvm.org/D45639#2693706>, @phosek wrote:

> It's depends on the order: whichever comes first wins. The default order of paths that the driver uses is (1) toolchain library paths, (2) library paths specified explicitly using `-L`, (3) sysroot library paths. So if `<toolchain>/lib/libc++.a` exists, it'd be picked up, otherwise `<sysroot>/lib/libc++.dylib` would be used.

Okay, so if that's the behavior after this patch, I think this is good.


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

https://reviews.llvm.org/D45639



More information about the cfe-commits mailing list