Commit 53ca6ae1 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

py/ Catch and report case of empty input file.

The usual cause would be that a cross-compiler for a port is not in PATH.
parent 95b35206
......@@ -80,6 +80,10 @@ def do_work(infiles):
# add the qstr to the list, with order number to retain original order in file
qstrs[ident] = (len(qstrs), ident, qstr)
if not qcfgs:
sys.stderr.write("ERROR: Empty preprocessor output - check for errors above\n")
# get config variables
cfg_bytes_len = int(qcfgs['BYTES_IN_LEN'])
cfg_bytes_hash = int(qcfgs['BYTES_IN_HASH'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment