Skip to content
Snippets Groups Projects
Commit 53ca6ae1 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

py/makeqstrdata.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
No related branches found
No related tags found
No related merge requests found
......@@ -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")
sys.exit(1)
# get config variables
cfg_bytes_len = int(qcfgs['BYTES_IN_LEN'])
cfg_bytes_hash = int(qcfgs['BYTES_IN_HASH'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment