Add -pch-output-directory driver flag and ClangImporter option

This will control the output path of a precompiled header (PCH) file
generated from the bridging header.

rdar://problem/31198711
This commit is contained in:
David Farler
2017-03-22 13:44:52 -07:00
parent 0328139a77
commit 7d56e794e1
3 changed files with 13 additions and 1 deletions

View File

@@ -1034,6 +1034,10 @@ static bool ParseClangImporterArgs(ClangImporterOptions &Opts,
Opts.DisableAdapterModules |= Args.hasArg(OPT_emit_imported_modules);
if (const Arg *A = Args.getLastArg(OPT_pch_output_dir)) {
Opts.PrecompiledHeaderOutputDir = A->getValue();
}
return false;
}