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 @@ -1025,6 +1025,7 @@ ClangImporter::create(ASTContext &ctx,
1025
1025
if (importerOpts.Mode == ClangImporterOptions::Modes::EmbedBitcode)
1026
1026
return importer;
1027
1027
1028
+ instance.getLangOpts ().NeededByPCHOrCompilationUsesPCH = true ;
1028
1029
bool canBegin = action->BeginSourceFile (instance,
1029
1030
instance.getFrontendOpts ().Inputs [0 ]);
1030
1031
if (!canBegin)
@@ -1405,6 +1406,7 @@ ClangImporter::emitBridgingPCH(StringRef headerPath,
1405
1406
invocation->getFrontendOpts ().OutputFile = outputPCHPath;
1406
1407
invocation->getFrontendOpts ().ProgramAction = clang::frontend::GeneratePCH;
1407
1408
invocation->getPreprocessorOpts ().resetNonModularOptions ();
1409
+ invocation->getLangOpts ()->NeededByPCHOrCompilationUsesPCH = true ;
1408
1410
1409
1411
clang::CompilerInstance emitInstance (
1410
1412
Impl.Instance ->getPCHContainerOperations ());
You can’t perform that action at this time.
0 commit comments