comparison python/zcc.py @ 293:6aa721e7b10b

Try to improve build sequence
author Windel Bouwman
date Thu, 28 Nov 2013 20:39:37 +0100
parents 534b94b40aa8
children 9417caea2eb3
comparison
equal deleted inserted replaced
292:534b94b40aa8 293:6aa721e7b10b
80 80
81 def main(args): 81 def main(args):
82 logging.basicConfig(format=logformat, level=args.log) 82 logging.basicConfig(format=logformat, level=args.log)
83 src = args.source 83 src = args.source
84 imps = args.imp 84 imps = args.imp
85 if not imps:
86 imps = []
85 tg = targets[args.target] 87 tg = targets[args.target]
86 diag = ppci.DiagnosticsManager() 88 diag = ppci.DiagnosticsManager()
87 outs = outstream.TextOutputStream() 89 outs = outstream.TextOutputStream()
88 90
89 res = zcc(src, imps, tg, outs, diag, dumpir=args.dumpir) 91 res = zcc(src, imps, tg, outs, diag, dumpir=args.dumpir)
90 if not res: 92 if not res:
91 diag.printErrors(src) 93 diag.printErrors()
92 return 1 94 return 1
93 95
94 if args.dumpasm: 96 if args.dumpasm:
95 outs.dump() 97 outs.dump()
96 98