Resolved an issue where multiple targets were not executed sequentially // Resolve #4604

This commit is contained in:
Ivan Kravets
2023-04-25 22:32:18 +03:00
parent c8eea40dd0
commit 6f0b1fbb91
4 changed files with 11 additions and 5 deletions
+3 -4
View File
@@ -93,6 +93,9 @@ class PlatformRunMixin:
args.append("PIOVERBOSE=%d" % int(self.verbose))
# pylint: disable=protected-access
args.append("ISATTY=%d" % int(click._compat.isatty(sys.stdout)))
# encode and append variables
for key, value in variables.items():
args.append("%s=%s" % (key.upper(), self.encode_scons_arg(value)))
if set(KNOWN_CLEAN_TARGETS + KNOWN_FULLCLEAN_TARGETS) & set(targets):
args.append("--clean")
@@ -103,10 +106,6 @@ class PlatformRunMixin:
elif targets:
args.extend(targets)
# encode and append variables
for key, value in variables.items():
args.append("%s=%s" % (key.upper(), self.encode_scons_arg(value)))
# force SCons output to Unicode
os.environ["PYTHONIOENCODING"] = "utf-8"