With -ccc-pch-is-pch, always treat precompiled inputs as PCH,
regardless of extension.
- Otherwise we can't expect that just plugging in -ccc-pch-is-pch
will work.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70318 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index d298a22..93966a5 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -138,7 +138,7 @@
if (FoundPCH || FoundPTH) {
A->claim();
- if (FoundPCH)
+ if (D.CCCUsePCH)
CmdArgs.push_back("-include-pch");
else
CmdArgs.push_back("-include-pth");