mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user