Skip to content

Commit 26b14dd

Browse files
authored
Install check tool later
1 parent e1356e9 commit 26b14dd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

platform.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ def configure_default_packages(self, variables, targets):
6666
self.packages["xtensa-esp-elf-gdb"]["optional"] = True
6767

6868
# Enable check tools only when "check_tool" is enabled
69-
for p in self.packages:
70-
if p in ("tool-cppcheck", "tool-clangtidy", "tool-pvs-studio"):
71-
self.packages[p]["optional"] = False if str(variables.get("check_tool")).strip("['']") in p else True
69+
if tl_flag:
70+
for p in self.packages:
71+
if p in ("tool-cppcheck", "tool-clangtidy", "tool-pvs-studio"):
72+
self.packages[p]["optional"] = False if str(variables.get("check_tool")).strip("['']") in p else True
7273

7374
if "arduino" in frameworks:
7475
self.packages["framework-arduinoespressif32"]["optional"] = False

0 commit comments

Comments
 (0)