Browse Source

Add line hint to the single source file

c/p from the InoToCpp converter that uses scons file node path
while we write binary data as utf-8 (and assume it is utf-8!),
we only ever need this in CI and source is always relative.
with luck, this is on the safe side.
mcspr-patch-1
Maxim Prokhorov 4 years ago
committed by Max Prokhorov
parent
commit
50163fc051
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      code/scripts/espurna_utils/release.py

+ 1
- 0
code/scripts/espurna_utils/release.py View File

@ -40,6 +40,7 @@ def merge_cpp(sources, output):
tmp.write(b'#include "espurna.h"\n')
for source in sources:
with open(source, "rb") as fobj:
tmp.write('# 1 "{}"\n'.format(source.replace("\\", "/")).encode('utf-8'));
shutil.copyfileobj(fobj, tmp)
tmp.seek(0)


Loading…
Cancel
Save