diff 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
line wrap: on
line diff
--- a/python/zcc.py	Wed Nov 27 08:06:42 2013 +0100
+++ b/python/zcc.py	Thu Nov 28 20:39:37 2013 +0100
@@ -82,13 +82,15 @@
     logging.basicConfig(format=logformat, level=args.log)
     src = args.source
     imps = args.imp
+    if not imps:
+        imps = []
     tg = targets[args.target]
     diag = ppci.DiagnosticsManager()
     outs = outstream.TextOutputStream()
 
     res = zcc(src, imps, tg, outs, diag, dumpir=args.dumpir)
     if not res:
-        diag.printErrors(src)
+        diag.printErrors()
         return 1
 
     if args.dumpasm: