[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:
Richard Smith
2015-08-17 07:13:32 +00:00
parent 88edc8243d
commit e75ee0f0c8
11 changed files with 63 additions and 37 deletions

View File

@@ -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(),