]> granicus.if.org Git - clang/commitdiff
ccc: Use Clang/Compile for Objective-C files as well.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 14 Jan 2009 01:30:55 +0000 (01:30 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 14 Jan 2009 01:30:55 +0000 (01:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62206 91177308-0d34-0410-b5e6-96231b3b80d8

tools/ccc/ccclib/ToolChain.py

index 13dc114a97b293493b6e61d08f30fa0ebd9ba2de..083ce38e58b3a56082231ac010586e6f3eadd428 100644 (file)
@@ -78,7 +78,8 @@ class Darwin_X86_ToolChain(ToolChain):
         
         if (self.driver.cccClang and
             self.archName == 'i386' and
-            action.inputs[0].type in (Types.CType, Types.CTypeNoPP) and
+            action.inputs[0].type in (Types.CType, Types.CTypeNoPP,
+                                      Types.ObjCType, Types.ObjCTypeNoPP) and
             isinstance(action.phase, Phases.CompilePhase)):
             return self.clangTool