mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 20:24:32 +02:00
Merge branch 'feature/hidden_link_as_a_group' into 'master'
cmake: add hidden option to link components as group See merge request espressif/esp-idf!9617
This commit is contained in:
@@ -440,6 +440,10 @@ macro(project project_name)
|
|||||||
add_executable(${project_elf} "${project_elf_src}")
|
add_executable(${project_elf} "${project_elf_src}")
|
||||||
add_dependencies(${project_elf} _project_elf_src)
|
add_dependencies(${project_elf} _project_elf_src)
|
||||||
|
|
||||||
|
if(__PROJECT_GROUP_LINK_COMPONENTS)
|
||||||
|
target_link_libraries(${project_elf} "-Wl,--start-group")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(test_components)
|
if(test_components)
|
||||||
target_link_libraries(${project_elf} "-Wl,--whole-archive")
|
target_link_libraries(${project_elf} "-Wl,--whole-archive")
|
||||||
foreach(test_component ${test_components})
|
foreach(test_component ${test_components})
|
||||||
|
Reference in New Issue
Block a user