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.

llvm-svn: 70318
This commit is contained in:
Daniel Dunbar 2009-04-28 19:38:45 +00:00
parent a38da57cd6
commit fb83baaf76
1 changed files with 1 additions and 1 deletions

View 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");