diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-03-11 23:07:54 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-11 23:07:54 +0000 |
| commit | d295bf1d4684e4795cbe11242d4e47a3e34653ad (patch) | |
| tree | 5df24230ebe4b91a42dba9eef6ad92df9f06d626 /clang/tools/ccc/ccclib/ToolChain.py | |
| parent | 65fe8349c6ad53bc5a4157dfc9e88d0a0754060d (diff) | |
| download | bcm5719-llvm-d295bf1d4684e4795cbe11242d4e47a3e34653ad.tar.gz bcm5719-llvm-d295bf1d4684e4795cbe11242d4e47a3e34653ad.zip | |
ccc: -x assembler-with-cpp was broken for darwin, and it wasn't using
clang as the preprocessor even when it should.
llvm-svn: 66737
Diffstat (limited to 'clang/tools/ccc/ccclib/ToolChain.py')
| -rw-r--r-- | clang/tools/ccc/ccclib/ToolChain.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/ccc/ccclib/ToolChain.py b/clang/tools/ccc/ccclib/ToolChain.py index 8c71789e174..d081f28d19a 100644 --- a/clang/tools/ccc/ccclib/ToolChain.py +++ b/clang/tools/ccc/ccclib/ToolChain.py @@ -57,14 +57,14 @@ class ToolChain(object): def shouldUseClangCompiler(self, action): # If user requested no clang, or this isn't a "compile" phase, - # or this isn't a C family option, then don't use clang. + # or this isn't an input clang understands, then don't use clang. if (self.driver.cccNoClang or not isinstance(action.phase, (Phases.PreprocessPhase, Phases.CompilePhase, Phases.SyntaxOnlyPhase, Phases.EmitLLVMPhase, Phases.PrecompilePhase)) or - action.inputs[0].type not in Types.cTypesSet): + action.inputs[0].type not in Types.clangableTypesSet): return False if self.driver.cccNoClangPreprocessor: |

