From 551bd3dbfea8c371d443daecadca33c9b60e53cb Mon Sep 17 00:00:00 2001 From: Valerii Koval Date: Fri, 2 Apr 2021 17:09:38 +0300 Subject: [PATCH] Explicitly specify PROGSUFFIX when compiling final binary (#3918) Resolves #3906 --- HISTORY.rst | 1 + platformio/builder/tools/platformio.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 46510eb3..4acc072c 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -19,6 +19,7 @@ PlatformIO Core 5 - Support debugging on Windows using Windows CMD/CLI (`pio debug `__) (`issue #3793 `_) - Configure a custom pattern to determine when debugging server is started with a new `debug_server_ready_pattern `__ option - Fixed an issue with silent hanging when a custom debug server is not found (`issue #3756 `_) + - Fixed an issue with broken binary file extension when a custom ``PROGNAME`` contains dot symbols (`issue #3906 `_) * **Static Code Analysis** diff --git a/platformio/builder/tools/platformio.py b/platformio/builder/tools/platformio.py index 544e1de8..0415c79f 100644 --- a/platformio/builder/tools/platformio.py +++ b/platformio/builder/tools/platformio.py @@ -75,7 +75,7 @@ def BuildProgram(env): env.Append(_LIBFLAGS=" -Wl,--end-group") program = env.Program( - os.path.join("$BUILD_DIR", env.subst("$PROGNAME")), env["PIOBUILDFILES"] + os.path.join("$BUILD_DIR", env.subst("$PROGNAME$PROGSUFFIX")), env["PIOBUILDFILES"] ) env.Replace(PIOMAINPROG=program)