From e4264a6a51b3bc45d84d69e6e4503fa5a303a93e Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 1 Jul 2022 19:38:51 +0300 Subject: [PATCH] Make $PROGPATH configurable --- platformio/builder/tools/platformio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/builder/tools/platformio.py b/platformio/builder/tools/platformio.py index b4b0d56a..04b1b1d7 100644 --- a/platformio/builder/tools/platformio.py +++ b/platformio/builder/tools/platformio.py @@ -75,7 +75,7 @@ def BuildProgram(env): env.Prepend(_LIBFLAGS="-Wl,--start-group ") env.Append(_LIBFLAGS=" -Wl,--end-group") - program = env.Program("$PROGPATH", env["PIOBUILDFILES"]) + program = env.Program(env.subst("$PROGPATH"), env["PIOBUILDFILES"]) env.Replace(PIOMAINPROG=program) AlwaysBuild(