From e63019c4691b53ca94c461f6213a2d6519429653 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 1 Feb 2021 12:52:00 +0200 Subject: [PATCH] Fixed a "The command line is too long" issue with a linking process on Windows // Resolve #3827 --- HISTORY.rst | 7 ++++++- platformio/builder/tools/piomaxlen.py | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 5687765d..43c0d867 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -8,12 +8,17 @@ PlatformIO Core 5 **A professional collaborative platform for embedded development** +5.1.1 (2021-??-??) +~~~~~~~~~~~~~~~~~~ + +* Fixed a "The command line is too long" issue with a linking process on Windows (`issue #3827 `_) + 5.1.0 (2021-01-28) ~~~~~~~~~~~~~~~~~~ * **PlatformIO Home** - - Boosted PlatformIO Home performance thanks to migrating the codebase to the pure Python 3 Asynchronous I/O stack + - Boosted `PlatformIO Home `__ performance thanks to migrating the codebase to the pure Python 3 Asynchronous I/O stack - Added a new ``--session-id`` option to `pio home `__ command that helps to keep PlatformIO Home isolated from other instances and protect from 3rd party access (`issue #3397 `_) * **Build System** diff --git a/platformio/builder/tools/piomaxlen.py b/platformio/builder/tools/piomaxlen.py index d386bd14..0059dcf3 100644 --- a/platformio/builder/tools/piomaxlen.py +++ b/platformio/builder/tools/piomaxlen.py @@ -26,8 +26,8 @@ from platformio.compat import WINDOWS, hashlib_encode_data # There are the next limits depending on a platform: # - Windows = 8192 # - Unix = 131072 -# We need ~256 characters for a temporary file path -MAX_LINE_LENGTH = (8192 if WINDOWS else 131072) - 256 +# We need ~512 characters for compiler and temporary file paths +MAX_LINE_LENGTH = (8192 if WINDOWS else 131072) - 512 WINPATHSEP_RE = re.compile(r"\\([^\"'\\]|$)")