================
@@ -263,6 +263,10 @@ makeCommonInvocationForModuleBuild(CompilerInvocation CI) {
// units.
CI.getFrontendOpts().Inputs.clear();
CI.getFrontendOpts().OutputFile.clear();
+ CI.getFrontendOpts().GenReducedBMI = false;
+ CI.getFrontendOpts().ModuleOutputPath.clear();
+ CI.getHeaderSearchOpts().ModulesSkipHeaderSearchPaths = false;
+ CI.getHeaderSearchOpts().ModulesSkipDiagnosticOptions = false;
----------------
naveen-seth wrote:
I hope I added the changes in the place you intended, but I wasn’t completely
sure.
I didn’t reset the options that are explicitly set for the scanning
optimizations:
https://github.com/llvm/llvm-project/blob/78c65545d4694e043b593e4cca7c7281a639247b/clang/lib/Tooling/DependencyScanning/DependencyScannerImpl.cpp#L496-L497
For the other two, I am not sure if they can have any effect when we’re not
building a module, but it is probably safer.
https://github.com/llvm/llvm-project/blob/78c65545d4694e043b593e4cca7c7281a639247b/clang/lib/Tooling/DependencyScanning/DependencyScannerImpl.cpp#L389-L389
https://github.com/llvm/llvm-project/pull/161486
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits