Fixed a "The command line is too long" issue with a linking process on Windows // Resolve #3827

This commit is contained in:
Ivan Kravets
2021-02-01 12:52:00 +02:00
parent 698594525f
commit e63019c469
2 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -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"\\([^\"'\\]|$)")