This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Fix a regression issue caused by r348365.
ClosedPublic

Authored by hokein on Jan 7 2019, 1:38 AM.

Details

Summary

With r348365, we now detect libc++ dir using the actual compiler path
(from the compilation command), rather than the resource-dir.

This new behavior will cause clangd couldn't find libc++ dir (even the libc++ is
built from the source) when using a fallback compilation command (clang xxx)

The fix is to use <clangd_install_dir>/clang as the actual compiler path.

Diff Detail

Event Timeline

hokein created this revision.Jan 7 2019, 1:38 AM
ilya-biryukov accepted this revision.Jan 7 2019, 3:23 AM

LGTM. Thanks

This revision is now accepted and ready to land.Jan 7 2019, 3:23 AM
This revision was automatically updated to reflect the committed changes.