diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-08-13 18:30:25 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-08-13 18:30:25 +0000 |
commit | be9b6c75c3e654e1021f6534c9dd46e8197c00ed (patch) | |
tree | 9a680a326317d64dc2f1865a8b51e7e6ff6ee4ad /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 184d94e0090173ef0c0051fdcd25a7ac6c90c032 (diff) | |
download | llvm-be9b6c75c3e654e1021f6534c9dd46e8197c00ed.zip llvm-be9b6c75c3e654e1021f6534c9dd46e8197c00ed.tar.gz llvm-be9b6c75c3e654e1021f6534c9dd46e8197c00ed.tar.bz2 |
[modules] For explicit module file dependencies, only list direct dependency module files.
llvm-svn: 244931
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index ae1ccd7..73febb4 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -709,6 +709,9 @@ static void ParseDependencyOutputArgs(DependencyOutputOptions &Opts, // They won't be discovered by the regular preprocessor, so // we let make / ninja to know about this implicit dependency. Opts.ExtraDeps = Args.getAllArgValues(OPT_fsanitize_blacklist); + auto ModuleFiles = Args.getAllArgValues(OPT_fmodule_file); + Opts.ExtraDeps.insert(Opts.ExtraDeps.end(), ModuleFiles.begin(), + ModuleFiles.end()); } bool clang::ParseDiagnosticArgs(DiagnosticOptions &Opts, ArgList &Args, |