From 50163fc0511ebbaa5cb79a84e189a99506b9f1b6 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Fri, 1 May 2020 08:45:01 +0300 Subject: [PATCH] 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. --- code/scripts/espurna_utils/release.py | 1 + 1 file changed, 1 insertion(+) diff --git a/code/scripts/espurna_utils/release.py b/code/scripts/espurna_utils/release.py index deee4ef0..4c21a038 100644 --- a/code/scripts/espurna_utils/release.py +++ b/code/scripts/espurna_utils/release.py @@ -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)