From: Daniel Dunbar Date: Tue, 28 Apr 2009 19:38:45 +0000 (+0000) Subject: With -ccc-pch-is-pch, always treat precompiled inputs as PCH, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea71a5b388bc5bf91cb81ef004d0dd7f011af512;p=clang 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 d298a22d1a..93966a53f8 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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");