Mercurial > lcfOS
comparison python/ppci/c3/builder.py @ 305:0615b5308710
Updated docs
author | Windel Bouwman |
---|---|
date | Fri, 06 Dec 2013 13:50:38 +0100 |
parents | 6753763d3bec |
children | b145f8e6050b |
comparison
equal
deleted
inserted
replaced
304:fa99f36fabb5 | 305:0615b5308710 |
---|---|
55 all_pkgs = set(doF(self.tc.checkPackage, all_pkgs)) | 55 all_pkgs = set(doF(self.tc.checkPackage, all_pkgs)) |
56 return all_pkgs & s_pkgs | 56 return all_pkgs & s_pkgs |
57 | 57 |
58 def build(self, srcs, imps=[]): | 58 def build(self, srcs, imps=[]): |
59 """ Create IR-code from sources """ | 59 """ Create IR-code from sources """ |
60 self.logger.info('Starting build with {} source files'.format(len(srcs))) | 60 self.logger.info('Building {} source files'.format(len(srcs))) |
61 self.ok = True | 61 self.ok = True |
62 for pkg in self.checkSource(srcs, imps): | 62 for pkg in self.checkSource(srcs, imps): |
63 # Only return ircode when everything is OK | 63 # Only return ircode when everything is OK |
64 if self.ok: | 64 if self.ok: |
65 yield self.cg.gencode(pkg) | 65 yield self.cg.gencode(pkg) |