heap/cmake: Fix linking error when heap tracing is enabled

This commit is contained in:
Angus Gratton 2018-05-01 16:54:27 +10:00 committed by Angus Gratton
parent 2fadf8a000
commit 68282cf80b

View file

@ -12,7 +12,15 @@ register_component()
if(CONFIG_HEAP_TRACING)
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})
target_link_libraries(heap "-Wl,--wrap=${wrap}")