diff options
author | Pierre Gousseau <pierregousseau14@gmail.com> | 2016-07-13 14:21:11 +0000 |
---|---|---|
committer | Pierre Gousseau <pierregousseau14@gmail.com> | 2016-07-13 14:21:11 +0000 |
commit | 533a893fa126d8a9662d836ad28f51afa1d2e74a (patch) | |
tree | 5ec196a7bb03e1002b3fa71abc2d78f4a99dda5f /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | c1d8d4b2684165a11f944af7217addc08d5c134f (diff) | |
download | llvm-533a893fa126d8a9662d836ad28f51afa1d2e74a.zip llvm-533a893fa126d8a9662d836ad28f51afa1d2e74a.tar.gz llvm-533a893fa126d8a9662d836ad28f51afa1d2e74a.tar.bz2 |
[PCH] Add a fno-pch-timestamp option to cc1 to disable inclusion of timestamps in PCH files.
This is to allow distributed build systems, that do not preserve time stamps, to use PCH files.
Second and last part of the patch proposed at:
Differential Revision: http://reviews.llvm.org/D20867
llvm-svn: 275267
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 59cb4010..7bc91ad 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1197,6 +1197,7 @@ static InputKind ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args, Opts.ModuleFiles = Args.getAllArgValues(OPT_fmodule_file); Opts.ModulesEmbedFiles = Args.getAllArgValues(OPT_fmodules_embed_file_EQ); Opts.ModulesEmbedAllFiles = Args.hasArg(OPT_fmodules_embed_all_files); + Opts.IncludeTimestamps = !Args.hasArg(OPT_fno_pch_timestamp); Opts.CodeCompleteOpts.IncludeMacros = Args.hasArg(OPT_code_completion_macros); |