From bd2d34c6b3bd49d4e0f6d59ba21cdd7046ac03a9 Mon Sep 17 00:00:00 2001 From: Valerii Koval Date: Mon, 27 Apr 2020 19:05:18 +0300 Subject: [PATCH] Fail if default main component is not specified in platformio.ini --- builder/frameworks/espidf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/frameworks/espidf.py b/builder/frameworks/espidf.py index c3525d2..cf7dfdb 100644 --- a/builder/frameworks/espidf.py +++ b/builder/frameworks/espidf.py @@ -874,7 +874,7 @@ if project_target_name not in target_configs: sys.stderr.write("Error: Couldn't find the main target of the project!\n") env.Exit(1) -if all(t in target_configs for t in (project_target_name, "__idf_main")): +if project_target_name != "__idf_main" and "__idf_main" in target_configs: sys.stderr.write( ( "Warning! Detected two different targets with project sources. Please use "