diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-01-11 22:03:55 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-01-11 22:03:55 +0000 |
commit | e99f9260d1eec79299a0d43723feec0596a1daff (patch) | |
tree | 1a47ae46e69b0364056c88c246786198349dffad /tools/ccc/ccclib/Driver.py | |
parent | 9f2505b934745b18d580ade4dac7b8b16952a30c (diff) |
ccc: Print -### output on stderr to match gcc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62052 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/ccc/ccclib/Driver.py')
-rw-r--r-- | tools/ccc/ccclib/Driver.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py index 53a4c22dc2..b9aba39f31 100644 --- a/tools/ccc/ccclib/Driver.py +++ b/tools/ccc/ccclib/Driver.py @@ -144,11 +144,11 @@ class Driver(object): self.claim(hasHashHashHash) for j in jobs.iterjobs(): if isinstance(j, Jobs.Command): - print '"%s"' % '" "'.join(j.getArgv()) + print >>sys.stderr, '"%s"' % '" "'.join(j.getArgv()) elif isinstance(j, Jobs.PipedJob): for c in j.commands: - print '"%s" %c' % ('" "'.join(c.getArgv()), - "| "[c is j.commands[-1]]) + print >>sys.stderr, '"%s" %c' % ('" "'.join(c.getArgv()), + "| "[c is j.commands[-1]]) elif not isinstance(j, JobList): raise ValueError,'Encountered unknown job.' sys.exit(0) @@ -308,6 +308,10 @@ class Driver(object): # that other code which needs to know the inputs # handles this properly. Best not to try and lipo # this, for example. + # + # FIXME: Actually, this is just flat out broken, the + # tools expect inputs to be accessible by .getValue + # but that of course only yields the argument. inputs.append((Types.ObjectType, a)) elif a.opt is self.parser.xOption: self.claim(a) |