The PCHGenerator was enhanced to protect against build races.

See llvm-mirror/clang@d28cf14 and llvm-mirror/clang@2d59837.
This commit is contained in:
Vassil Vassilev 2020-03-15 14:33:55 +02:00 committed by jenkins
parent 0e04207ce2
commit adb3a16dff

View File

@ -1592,8 +1592,8 @@ static void stringifyPreprocSetting(PreprocessorOptions& PPOpts,
auto Buffer = std::make_shared<PCHBuffer>();
Consumers.push_back(llvm::make_unique<PCHGenerator>(
CI->getPreprocessor(), ModuleOutputFile, Sysroot, Buffer,
CI->getFrontendOpts().ModuleFileExtensions,
CI->getPreprocessor(), CI->getModuleCache(), ModuleOutputFile,
Sysroot, Buffer, CI->getFrontendOpts().ModuleFileExtensions,
/*AllowASTWithErrors=*/false,
/*IncludeTimestamps=*/
+CI->getFrontendOpts().BuildingImplicitModule));