Skip to content

Commit 8155f8f

Browse files
committed
print more file info
1 parent 2722ee5 commit 8155f8f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ports/zephyr-cp/cptools/cpbuild.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ async def run_command(command, working_directory, description=None, check_hash=[
189189
async with shared_semaphore:
190190
for i, part in enumerate(command):
191191
if isinstance(part, str) and part.startswith("@"):
192+
print(part)
192193
with open(part[1:], "r") as f:
193194
print("Contents of file:", part[1:])
194195
content = f.read()
@@ -336,13 +337,15 @@ def __init__(self, srcdir: pathlib.Path, builddir: pathlib.Path, cmake_args):
336337
# Windows paths have / as separator but gcc wants them as escaped backslashes.
337338
if os.name == "nt":
338339
escaped_cflags = self.cflags.replace("/", "\\\\")
340+
escaped_cflags = escaped_cflags.replace(" ", "\n")
339341
else:
340342
escaped_cflags = self.cflags
341343
print("writing to:", self._cflags_tempfile.name)
342344
print(escaped_cflags)
343345
self._cflags_tempfile.write(escaped_cflags.encode())
344346
self._cflags_tempfile.flush()
345347
self.cflags_file = "@" + self._cflags_tempfile.name
348+
print("cflags_file:", self.cflags_file)
346349

347350
self.srcdir = srcdir
348351
self.builddir = builddir

0 commit comments

Comments
 (0)