File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -983,6 +983,7 @@ ClangImporter::create(ASTContext &ctx,
983
983
if (importerOpts.Mode == ClangImporterOptions::Modes::EmbedBitcode)
984
984
return importer;
985
985
986
+ instance.getLangOpts ().NeededByPCHOrCompilationUsesPCH = true ;
986
987
bool canBegin = action->BeginSourceFile (instance,
987
988
instance.getFrontendOpts ().Inputs [0 ]);
988
989
if (!canBegin)
@@ -1361,6 +1362,7 @@ ClangImporter::emitBridgingPCH(StringRef headerPath,
1361
1362
invocation->getFrontendOpts ().OutputFile = outputPCHPath;
1362
1363
invocation->getFrontendOpts ().ProgramAction = clang::frontend::GeneratePCH;
1363
1364
invocation->getPreprocessorOpts ().resetNonModularOptions ();
1365
+ invocation->getLangOpts ()->NeededByPCHOrCompilationUsesPCH = true ;
1364
1366
1365
1367
clang::CompilerInstance emitInstance (
1366
1368
Impl.Instance ->getPCHContainerOperations ());
You can’t perform that action at this time.
0 commit comments