Skip to content

Commit 53ca6ae

Browse files
committed
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.
1 parent 95b3520 commit 53ca6ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

py/makeqstrdata.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ def do_work(infiles):
8080
# add the qstr to the list, with order number to retain original order in file
8181
qstrs[ident] = (len(qstrs), ident, qstr)
8282

83+
if not qcfgs:
84+
sys.stderr.write("ERROR: Empty preprocessor output - check for errors above\n")
85+
sys.exit(1)
86+
8387
# get config variables
8488
cfg_bytes_len = int(qcfgs['BYTES_IN_LEN'])
8589
cfg_bytes_hash = int(qcfgs['BYTES_IN_HASH'])

0 commit comments

Comments
 (0)