summaryrefslogtreecommitdiffstats
path: root/clang/Driver/clang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/Driver/clang.cpp')
-rw-r--r--clang/Driver/clang.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp
index e6c696225dc..cd58a05ee7f 100644
--- a/clang/Driver/clang.cpp
+++ b/clang/Driver/clang.cpp
@@ -1084,6 +1084,16 @@ public:
return NULL;
}
+ /// FIXME: PP can only handle one callback
+ if (ProgAction != PrintPreprocessedInput) {
+ const char* ErrStr;
+ bool DFG = CreateDependencyFileGen(PP, OutputFile, InFile, ErrStr);
+ if (!DFG && ErrStr) {
+ fprintf(stderr, ErrStr);
+ return NULL;
+ }
+ }
+
InitializeSourceMgr = false;
return PP;
}
OpenPOWER on IntegriCloud