Mercurial > lcfOS
diff python/ppci/c3/builder.py @ 366:39bf68bf1891
Fix sample tests and deterministic build
author | Windel Bouwman |
---|---|
date | Fri, 21 Mar 2014 09:43:01 +0100 |
parents | 5477e499b039 |
children | fb3c1f029b30 |
line wrap: on
line diff
--- a/python/ppci/c3/builder.py Wed Mar 19 22:32:04 2014 +0100 +++ b/python/ppci/c3/builder.py Fri Mar 21 09:43:01 2014 +0100 @@ -105,9 +105,9 @@ def doParse(src): tokens = self.lexer.lex(src) return self.parser.parseSource(tokens) - s_pkgs = set(map(doParse, srcs)) - i_pkgs = set(map(doParse, imps)) - all_pkgs = s_pkgs | i_pkgs + s_pkgs = list(map(doParse, srcs)) + i_pkgs = list(map(doParse, imps)) + all_pkgs = s_pkgs + i_pkgs if not all(all_pkgs): self.ok = False return @@ -126,7 +126,7 @@ # Generate intermediate code (phase 2) # Only return ircode when everything is OK - for pkg in all_pkgs & s_pkgs: + for pkg in s_pkgs: yield self.cg.gencode(pkg) if not all(pkg.ok for pkg in all_pkgs): self.ok = False