heap/cmake: Fix linking error when heap tracing is enabled
This commit is contained in:
parent
2fadf8a000
commit
68282cf80b
1 changed files with 9 additions and 1 deletions
|
@ -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}")
|
||||||
|
|
Loading…
Reference in a new issue