aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-08-17 07:13:32 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-08-17 07:13:32 +0000
commite75ee0f0c8f8cf603c7894f9442f81faf11c2ff6 (patch)
tree9ff53065671bce8db52fea63c808f9494098b614 /clang/lib/Frontend/CompilerInstance.cpp
parent88edc8243d6d0c4f091d9f99e8916b0b52b456a2 (diff)
downloadllvm-e75ee0f0c8f8cf603c7894f9442f81faf11c2ff6.zip
llvm-e75ee0f0c8f8cf603c7894f9442f81faf11c2ff6.tar.gz
llvm-e75ee0f0c8f8cf603c7894f9442f81faf11c2ff6.tar.bz2
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index c678da9..5079353 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -913,6 +913,7 @@ static bool compileModuleImpl(CompilerInstance &ImportingInstance,
FrontendOpts.OutputFile = ModuleFileName.str();
FrontendOpts.DisableFree = false;
FrontendOpts.GenerateGlobalModuleIndex = false;
+ FrontendOpts.BuildingImplicitModule = true;
FrontendOpts.Inputs.clear();
InputKind IK = getSourceInputKindFromOptions(*Invocation->getLangOpts());