forked from espressif/esp-idf
heap/cmake: Fix linking error when heap tracing is enabled
This commit is contained in:
committed by
Angus Gratton
parent
2fadf8a000
commit
68282cf80b
@@ -12,7 +12,15 @@ register_component()
|
|||||||
|
|
||||||
if(CONFIG_HEAP_TRACING)
|
if(CONFIG_HEAP_TRACING)
|
||||||
set(WRAP_FUNCTIONS
|
set(WRAP_FUNCTIONS
|
||||||
calloc malloc free realloc heap_caps_malloc heap_caps_free heap_caps_realloc)
|
calloc
|
||||||
|
malloc
|
||||||
|
free
|
||||||
|
realloc
|
||||||
|
heap_caps_malloc
|
||||||
|
heap_caps_free
|
||||||
|
heap_caps_realloc
|
||||||
|
heap_caps_malloc_default
|
||||||
|
heap_caps_realloc_default)
|
||||||
|
|
||||||
foreach(wrap ${WRAP_FUNCTIONS})
|
foreach(wrap ${WRAP_FUNCTIONS})
|
||||||
target_link_libraries(heap "-Wl,--wrap=${wrap}")
|
target_link_libraries(heap "-Wl,--wrap=${wrap}")
|
||||||
|
Reference in New Issue
Block a user