summaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorBen Langmuir <blangmuir@apple.com>2014-03-12 00:06:17 +0000
committerBen Langmuir <blangmuir@apple.com>2014-03-12 00:06:17 +0000
commit310c3dc9ef15c47ef8c0d55ac48ea6e2ca67396d (patch)
treea6f2ee20ae4b299eabfaeee21b5b6f046ace4c99 /lib/Frontend/CompilerInvocation.cpp
parent4bfb063cae5d2dbe59778bbcd7fea4ca143c7743 (diff)
downloadclang-310c3dc9ef15c47ef8c0d55ac48ea6e2ca67396d.tar.gz
clang-310c3dc9ef15c47ef8c0d55ac48ea6e2ca67396d.tar.bz2
clang-310c3dc9ef15c47ef8c0d55ac48ea6e2ca67396d.tar.xz
Add an option -fmodules-validate-system-headers
When enabled, always validate the system headers when loading a module. The end result of this is that when these headers change, we will notice and rebuild the module. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--lib/Frontend/CompilerInvocation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp
index 20e59c2726..f368837a5f 100644
--- a/lib/Frontend/CompilerInvocation.cpp
+++ b/lib/Frontend/CompilerInvocation.cpp
@@ -930,6 +930,9 @@ static void ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args) {
Args.hasArg(OPT_fmodules_validate_once_per_build_session);
Opts.BuildSessionTimestamp =
getLastArgUInt64Value(Args, OPT_fbuild_session_timestamp, 0);
+ Opts.ModulesValidateSystemHeaders =
+ Args.hasArg(OPT_fmodules_validate_system_headers);
+
for (arg_iterator it = Args.filtered_begin(OPT_fmodules_ignore_macro),
ie = Args.filtered_end();
it != ie; ++it) {