Re: Hashing the clang resource path

2017-05-01 Thread Argyrios Kyrtzidis via cfe-commits
> On May 1, 2017, at 7:51 AM, Aaron Ballman wrote: > > I think we may have stumbled across a bug with > CIndexer::getClangResourcesPath(), where on POSIX-y systems it uses > dladdr() to get the path of the shared object. It seems that on some > systems (in our case, OS X 10.6.8), dladdr() does n

Hashing the clang resource path

2017-05-01 Thread Aaron Ballman via cfe-commits
I think we may have stumbled across a bug with CIndexer::getClangResourcesPath(), where on POSIX-y systems it uses dladdr() to get the path of the shared object. It seems that on some systems (in our case, OS X 10.6.8), dladdr() does not return a canonicalized path. We're getting a path like PATH/T