Mercurial > lcfOS
diff python/ppci/buildtasks.py @ 348:442fb043d149
Added log option to zcc
author | Windel Bouwman |
---|---|
date | Sat, 08 Mar 2014 15:32:33 +0100 |
parents | 3bb7dcfe5529 |
children | 5477e499b039 |
line wrap: on
line diff
--- a/python/ppci/buildtasks.py Fri Mar 07 17:05:32 2014 +0100 +++ b/python/ppci/buildtasks.py Sat Mar 08 15:32:33 2014 +0100 @@ -15,7 +15,7 @@ from .assembler import Assembler from .objectfile import ObjectFile from .linker import Linker -from .outstream import BinaryOutputStream +from .outstream import BinaryOutputStream, MasterOutputStream, LoggerOutputStream class BuildTask(Task): @@ -36,7 +36,7 @@ self.assembler = Assembler(target) def run(self): - self.ostream.selectSection('code') + self.ostream.select_section('code') self.assembler.assemble(self.source, self.ostream) @@ -74,7 +74,12 @@ # Code generation: d = {'ircode':ircode} self.logger.debug('Starting code generation for {}'.format(ircode), extra=d) - o = BinaryOutputStream(self.output) + + o2 = BinaryOutputStream(self.output) + o1 = LoggerOutputStream() + o = MasterOutputStream() + o.add_substream(o1) + o.add_substream(o2) cg.generate(ircode, o) if not c3b.ok: