Skip to content

Commit

Permalink
Add a warning if an IDF component doesn't register any source files
Browse files Browse the repository at this point in the history
Issue #1180
  • Loading branch information
valeros committed Sep 5, 2023
1 parent 6186d2c commit 4af2332
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion builder/frameworks/espidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,11 @@ def _fix_component_relative_include(config, build_flags, source_index):

def prepare_build_envs(config, default_env, debug_allowed=True):
build_envs = []
target_compile_groups = config.get("compileGroups")
target_compile_groups = config.get("compileGroups", [])
if not target_compile_groups:
print("Warning! The `%s` component doesn't register any source files. "
"Check if sources are set in component's CMakeLists.txt!" % config["name"]
)

is_build_type_debug = "debug" in env.GetBuildType() and debug_allowed
for cg in target_compile_groups:
Expand Down

0 comments on commit 4af2332

Please sign in to comment.