diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-03-14 03:07:38 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-03-14 03:07:38 +0000 |
commit | 6d0753d42a8344a23cc8b170ac29184cac47e8ce (patch) | |
tree | 92be428f1d5353a65c290af8d61f710f614380ca /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | f88731f293c7c6e9268e7d298a806bf29ea8aa2d (diff) | |
download | llvm-6d0753d42a8344a23cc8b170ac29184cac47e8ce.zip llvm-6d0753d42a8344a23cc8b170ac29184cac47e8ce.tar.gz llvm-6d0753d42a8344a23cc8b170ac29184cac47e8ce.tar.bz2 |
[Modules] Emit the module file paths as dependencies of the PCH when we are building one.
This is because the PCH is tied to the module files, if one of the module files changes or gets removed
the build system should re-build the PCH file.
rdar://16321245
llvm-svn: 203885
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 f368837..7cc0b1b 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -528,6 +528,7 @@ static void ParseDependencyOutputArgs(DependencyOutputOptions &Opts, Opts.OutputFile = Args.getLastArgValue(OPT_dependency_file); Opts.Targets = Args.getAllArgValues(OPT_MT); Opts.IncludeSystemHeaders = Args.hasArg(OPT_sys_header_deps); + Opts.IncludeModuleFiles = Args.hasArg(OPT_module_file_deps); Opts.UsePhonyTargets = Args.hasArg(OPT_MP); Opts.ShowHeaderIncludes = Args.hasArg(OPT_H); Opts.HeaderIncludeOutputFile = Args.getLastArgValue(OPT_header_include_file); |