HostInfoMacOSX: Share the clang resource directory with Swift.
authorAdrian Prantl <aprantl@apple.com>
Fri, 11 May 2018 17:54:09 +0000 (17:54 +0000)
committerAdrian Prantl <aprantl@apple.com>
Fri, 11 May 2018 17:54:09 +0000 (17:54 +0000)
commit7d46f0e4c235abcdac51e014b9dc3d233e2272fe
tree3664856fab983e7da78702f0e618290a9a861815
parentcd93c4ef1ac461b007173fb9915b8bf82d80c2ff
HostInfoMacOSX: Share the clang resource directory with Swift.

Inside Xcode and in Xcode toolchains LLDB is always in lockstep
with the Swift compiler, so it can reuse its Clang resource
directory. This allows LLDB and the Swift compiler to share the
same Clang module cache.

rdar://problem/40039633

Differential Revision: https://reviews.llvm.org/D46736

llvm-svn: 332111
lldb/include/lldb/Host/macosx/HostInfoMacOSX.h
lldb/source/Host/macosx/HostInfoMacOSX.mm
lldb/unittests/Host/CMakeLists.txt
lldb/unittests/Host/HostInfoTest.cpp