mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add an option to disable ClangImporter imports form source.
This is primarily meant to used for testing LLDB's DWARFImporterDelegate, however, this could become the default option for LLDB once DWARFImporterDelegate is sufficiently mature. <rdar://problem/57880844>
This commit is contained in:
@@ -638,7 +638,12 @@ static bool ParseClangImporterArgs(ClangImporterOptions &Opts,
|
||||
|
||||
if (Args.hasArg(OPT_warnings_as_errors))
|
||||
Opts.ExtraArgs.push_back("-Werror");
|
||||
|
||||
Opts.DebuggerSupport |= Args.hasArg(OPT_debugger_support);
|
||||
|
||||
Opts.DisableSourceImport |=
|
||||
Args.hasArg(OPT_disable_clangimporter_source_import);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user