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"\\([^\"'\\]|$)")