Skip to content

Commit e7d39cc

Browse files
authored
Update platformio-build.py
this fixes a spaces-in-path error i got, because: lines 371~373 produce (in my case): '$PROJECT_DIR\boards/variants\BKS_H2O_1003400D\ldscript.ld' which then gets translated to a full/absolute path, where the spaces in my windows username are not accounted for. I added some quotes around the whole thing, which fixes it for me. (some of the other path strings (which include an absolute path early on) do not suffer from this issue, so i suspect that someone has already attempted to prevent spaces-in-path errors by dynamically adding quotes at some point, but has not accounted for unparsed paths ('$PROJECT_DIR') when checking for spaces.) Signed-off-by: Thijs van Liempd <[email protected]>
1 parent ecdf6af commit e7d39cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/platformio/platformio-build.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,10 @@ def get_arduino_board_id(board_config, mcu):
368368
LINKFLAGS=[
369369
(
370370
"-Wl,--default-script",
371-
join(
371+
('"'+join(
372372
inc_variant_dir,
373373
board_config.get("build.arduino.ldscript", "ldscript.ld"),
374-
),
374+
)+'"'),
375375
)
376376
]
377377
)

0 commit comments

Comments
 (0)