mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
heap/cmake: Fix linking error when heap tracing is enabled
This commit is contained in:
parent
2fadf8a000
commit
68282cf80b
@ -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}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user