Skip to content

Commit 0f621a0

Browse files
authored
Merge pull request #67607 from bnbarham/incremental-opt
[ClangImporter] Move incremental processing to the new language option
2 parents 20e81af + f7d10b8 commit 0f621a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,9 @@ importer::getNormalInvocationArguments(
728728
}
729729
}
730730
}
731+
732+
invocationArgStrs.push_back("-Xclang");
733+
invocationArgStrs.push_back("-fincremental-extensions");
731734
}
732735

733736
static void
@@ -1346,7 +1349,6 @@ ClangImporter::create(ASTContext &ctx,
13461349
return nullptr; // there was an error related to the compiler arguments.
13471350

13481351
clang::Preprocessor &clangPP = instance.getPreprocessor();
1349-
clangPP.enableIncrementalProcessing();
13501352

13511353
// Setup Preprocessor callbacks before initialing the parser to make sure
13521354
// we catch implicit includes.

0 commit comments

Comments
 (0)