Skip to content

Commit 86fbfad

Browse files
committed
Fix possible name for CMake target with project sources
1 parent 5e0f9e4 commit 86fbfad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builder/frameworks/espidf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,8 @@ def find_default_component(target_configs):
871871
sys.stderr.write("Error: Couldn't find the main target of the project!\n")
872872
env.Exit(1)
873873

874-
project_ld_scipt = generate_project_ld_script(sdk_config, ["__idf_src", "__pio_env"])
874+
project_ld_scipt = generate_project_ld_script(
875+
sdk_config, [project_target_name, "__pio_env"])
875876
env.Depends("$BUILD_DIR/$PROGNAME$PROGSUFFIX", project_ld_scipt)
876877

877878
elf_config = get_project_elf(target_configs)

0 commit comments

Comments
 (0)