Skip to content

Commit bd2d34c

Browse files
committed
Fail if default main component is not specified in platformio.ini
1 parent 960b4de commit bd2d34c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/frameworks/espidf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ def find_default_component(target_configs):
874874
sys.stderr.write("Error: Couldn't find the main target of the project!\n")
875875
env.Exit(1)
876876

877-
if all(t in target_configs for t in (project_target_name, "__idf_main")):
877+
if project_target_name != "__idf_main" and "__idf_main" in target_configs:
878878
sys.stderr.write(
879879
(
880880
"Warning! Detected two different targets with project sources. Please use "

0 commit comments

Comments
 (0)