[PATCH] D56976: [clang] [test] Pass -ccc-install-dir in mac compilation db test

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 21 04:51:57 PST 2019


ilya-biryukov added a comment.

In D56976#1365087 <https://reviews.llvm.org/D56976#1365087>, @mgorny wrote:

> Actually, it works on other systems because they don't use `argv[0]`. The problem is in compilation db code using getMainExecutable() in ctor without passing the real argv to it.


But it does so in all OSes and still manages find libc++, right? What's different for *BSD?

One possible fix is to start passing proper `argv[0]` into `getMainExecutable`, but my expectation is that using `clang` there was intentional: the tooling library tries to fallback to the system clang in that case.


Repository:
  rC Clang

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

https://reviews.llvm.org/D56976





More information about the cfe-commits mailing list