]> granicus.if.org Git - clang/commitdiff
With -ccc-pch-is-pch, always treat precompiled inputs as PCH,
authorDaniel Dunbar <daniel@zuster.org>
Tue, 28 Apr 2009 19:38:45 +0000 (19:38 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 28 Apr 2009 19:38:45 +0000 (19:38 +0000)
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

lib/Driver/Tools.cpp

index d298a22d1ab29194aab7dbd92d55de3366e88e46..93966a53f8e9a6839e52de56eb76f65f837f3805 100644 (file)
@@ -138,7 +138,7 @@ void Clang::AddPreprocessingOptions(const Driver &D,
 
       if (FoundPCH || FoundPTH) {
         A->claim();
-        if (FoundPCH)
+        if (D.CCCUsePCH)
           CmdArgs.push_back("-include-pch");
         else
           CmdArgs.push_back("-include-pth");