mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Added the option to override Clang's resource
directory when constructing a ClangImporter. This is for lldb, which keeps Clang's resource directory inside its own framework bundle. Swift SVN r6833
This commit is contained in:
@@ -70,7 +70,8 @@ bool swift::CompilerInstance::setup(const CompilerInvocation &Invok) {
|
||||
ImporterCtor(*Context, Invocation.getSDKPath(),
|
||||
Invocation.getTargetTriple(),
|
||||
Invocation.getClangModuleCachePath(),
|
||||
Invocation.getImportSearchPaths());
|
||||
Invocation.getImportSearchPaths(),
|
||||
StringRef());
|
||||
if (!clangImporter) {
|
||||
Diagnostics.diagnose(SourceLoc(), diag::error_clang_importer_create_fail);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user