aboutsummaryrefslogtreecommitdiff
path: root/tools/ccc/ccclib/ToolChain.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-11 23:07:54 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-11 23:07:54 +0000
commit105e9d75d99b3b62a6f75ff29a0e2b821e4dad68 (patch)
tree5a635f1222b70110b248638595f2aa6d50156d17 /tools/ccc/ccclib/ToolChain.py
parent5f8d1dbcd0c4368c70b8528252d093aa69f11879 (diff)
ccc: -x assembler-with-cpp was broken for darwin, and it wasn't using
clang as the preprocessor even when it should. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66737 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/ccc/ccclib/ToolChain.py')
-rw-r--r--tools/ccc/ccclib/ToolChain.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ccc/ccclib/ToolChain.py b/tools/ccc/ccclib/ToolChain.py
index 8c71789e17..d081f28d19 100644
--- a/tools/ccc/ccclib/ToolChain.py
+++ b/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: