Skip to content

Commit f82d9bc

Browse files
committed
Tidy up dynamic toolchain resolution
1 parent cfcf1c7 commit f82d9bc

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

platform.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,18 @@ def configure_default_packages(self, variables, targets):
5454
xtensa32s2_toolchain = "toolchain-xtensa-esp32s2"
5555
riscv_toolchain = "toolchain-riscv32-esp"
5656

57-
for p in self.packages.copy():
58-
# Disable old toolchains used by default
59-
if (
60-
p.startswith("toolchain")
61-
and "ulp" not in p
62-
):
63-
if self.packages[p]["owner"] == "espressif":
64-
self.packages[p]["optional"] = False
65-
else:
66-
del self.packages[p]
67-
57+
for p in self.packages.copy():
58+
# Disable old toolchains used by default
59+
if (
60+
p.startswith("toolchain")
61+
and "ulp" not in p
62+
):
63+
if self.packages[p]["owner"] == "espressif":
64+
self.packages[p]["optional"] = False
65+
else:
66+
del self.packages[p]
67+
68+
for p in self.packages:
6869
if p in ("tool-cmake", "tool-ninja", "toolchain-%sulp" % mcu):
6970
self.packages[p]["optional"] = False
7071
elif p in ("tool-mconf", "tool-idf") and "windows" in get_systype():

0 commit comments

Comments
 (0)