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 @@ -995,6 +995,7 @@ ClangImporter::create(ASTContext &ctx,
995
995
if (importerOpts.Mode == ClangImporterOptions::Modes::EmbedBitcode)
996
996
return importer;
997
997
998
+ instance.getLangOpts ().NeededByPCHOrCompilationUsesPCH = true ;
998
999
bool canBegin = action->BeginSourceFile (instance,
999
1000
instance.getFrontendOpts ().Inputs [0 ]);
1000
1001
if (!canBegin)
@@ -1373,6 +1374,7 @@ ClangImporter::emitBridgingPCH(StringRef headerPath,
1373
1374
invocation->getFrontendOpts ().OutputFile = outputPCHPath;
1374
1375
invocation->getFrontendOpts ().ProgramAction = clang::frontend::GeneratePCH;
1375
1376
invocation->getPreprocessorOpts ().resetNonModularOptions ();
1377
+ invocation->getLangOpts ()->NeededByPCHOrCompilationUsesPCH = true ;
1376
1378
1377
1379
clang::CompilerInstance emitInstance (
1378
1380
Impl.Instance ->getPCHContainerOperations ());
You can’t perform that action at this time.
0 commit comments