From: Daniel Dunbar Date: Thu, 12 Mar 2009 15:59:34 +0000 (+0000) Subject: ccc: Fix broken assertion. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00171ffc8ee248e71eaef31c998463e99f2e602e;p=clang ccc: Fix broken assertion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66793 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/ccc/ccclib/Tools.py b/tools/ccc/ccclib/Tools.py index 5ae8fddf9f..56e2032ddb 100644 --- a/tools/ccc/ccclib/Tools.py +++ b/tools/ccc/ccclib/Tools.py @@ -1272,7 +1272,8 @@ class LipoTool(Tool): def constructJob(self, phase, arch, jobs, inputs, output, outputType, arglist, linkingOutput): - assert outputType is Types.ImageType + + assert outputType in (Types.ObjectType, Types.ImageType) cmd_args = ['-create'] cmd_args.extend(arglist.render(output))