Skip to content

Commit 38752d5

Browse files
authored
always call ComponentManager()
1 parent e0f95ad commit 38752d5

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

builder/frameworks/arduino.py

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -687,18 +687,13 @@ def get_frameworks_in_current_env():
687687

688688
if ("arduino" in pioframework and "espidf" not in pioframework and
689689
arduino_lib_compile_flag in ("Inactive", "True")):
690-
691-
if flag_custom_component_remove or flag_lib_ignore:
692-
flag_remove = True
693-
from component_manager import ComponentManager
694-
component_manager = ComponentManager(env)
695-
component_manager.handle_component_settings(
696-
add_components=flag_custom_component_add,
697-
remove_components=flag_remove
698-
)
699-
silent_action = env.Action(component_manager.restore_pioarduino_build_py)
700-
silent_action.strfunction = lambda target, source, env: '' # hack to silence scons command output
701-
env.AddPostAction("checkprogsize", silent_action)
690+
# try to remove not needed include path if an lib_ignore entry exists
691+
from component_manager import ComponentManager
692+
component_manager = ComponentManager(env)
693+
component_manager.handle_component_settings()
694+
silent_action = env.Action(component_manager.restore_pioarduino_build_py)
695+
silent_action.strfunction = lambda target, source, env: '' # hack to silence scons command output
696+
env.AddPostAction("checkprogsize", silent_action)
702697

703698
if IS_WINDOWS:
704699
# Smart include path optimization based on total path length

0 commit comments

Comments
 (0)