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(