This is an archive of the discontinued LLVM Phabricator instance.

[Tooling] Make clang-tool find libc++ dir on mac when running on a file without compilation database.
ClosedPublic

Authored by hokein on Jan 14 2019, 1:25 PM.

Details

Summary

This is a regression of r348365.

When clang-tools run on a file without a complation database (clang-check /tmp/t.cc),
we will use fixed compilation database as a fallback. However the actual compiler
path in the fallback complation command is just clang-tool which is
insufficient to detect the libc++ dir.

Diff Detail

Repository
rC Clang

Event Timeline

hokein created this revision.Jan 14 2019, 1:25 PM
This revision is now accepted and ready to land.Jan 15 2019, 4:28 AM
This revision was automatically updated to reflect the committed changes.