[modules] When explicitly building a module file, don't include timestamps in
the produced pcm file for stable file creation across distributed build systems. llvm-svn: 245199
This commit is contained in:
@@ -137,7 +137,9 @@ GenerateModuleAction::CreateASTConsumer(CompilerInstance &CI,
|
||||
auto Buffer = std::make_shared<PCHBuffer>();
|
||||
std::vector<std::unique_ptr<ASTConsumer>> Consumers;
|
||||
Consumers.push_back(llvm::make_unique<PCHGenerator>(
|
||||
CI.getPreprocessor(), OutputFile, Module, Sysroot, Buffer));
|
||||
CI.getPreprocessor(), OutputFile, Module, Sysroot, Buffer,
|
||||
/*AllowASTWithErrors*/false,
|
||||
/*IncludeTimestamps*/+CI.getFrontendOpts().BuildingImplicitModule));
|
||||
Consumers.push_back(
|
||||
CI.getPCHContainerWriter().CreatePCHContainerGenerator(
|
||||
CI.getDiagnostics(), CI.getHeaderSearchOpts(),
|
||||
|
||||
Reference in New Issue
Block a user