forked from OSchip/llvm-project
Driver: Fix clang -ccc-no-clang -x c++-header foo.h on Darwin.
llvm-svn: 95876
This commit is contained in:
parent
932c2f2a9a
commit
bcd554f908
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue