Skip to content

Commit ca70144

Browse files
authored
always call ComponentManager()
1 parent dae7f84 commit ca70144

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
@@ -688,18 +688,13 @@ def get_frameworks_in_current_env():
688688

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

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

0 commit comments

Comments
 (0)