]> granicus.if.org Git - clang/commitdiff
Driver: Fix clang -ccc-no-clang -x c++-header foo.h on Darwin.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 11 Feb 2010 17:33:45 +0000 (17:33 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 11 Feb 2010 17:33:45 +0000 (17:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95876 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 9e7ec3b2de982b6d27165efb65cf4e3489c93462..f3b19f524268c7e29e70167474cc5caeb5b43ec9 100644 (file)
@@ -1746,7 +1746,8 @@ void darwin::Compile::ConstructJob(Compilation &C, const JobAction &JA,
   else if (Output.getType() == types::TY_AST)
     D.Diag(clang::diag::err_drv_no_ast_support)
       << getToolChain().getTripleString();
-  else if (JA.getType() != types::TY_PP_Asm)
+  else if (JA.getType() != types::TY_PP_Asm &&
+           JA.getType() != types::TY_PCH)
     D.Diag(clang::diag::err_drv_invalid_gcc_output_type)
       << getTypeName(JA.getType());