From b358581ab8e63df6d68e53ff346191d5869bacec Mon Sep 17 00:00:00 2001 From: Paul Reimer Date: Sun, 30 Sep 2018 16:45:51 -0700 Subject: [PATCH] heap: Compile heap_task_info.c conditionally on CONFIG_HEAP_TASK_TRACKING in heap CMakeLists.txt Merges https://github.com/espressif/esp-idf/pull/2498 --- components/heap/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/heap/CMakeLists.txt b/components/heap/CMakeLists.txt index 6492aefd5..073635b7a 100644 --- a/components/heap/CMakeLists.txt +++ b/components/heap/CMakeLists.txt @@ -7,6 +7,10 @@ if(NOT CONFIG_HEAP_POISONING_DISABLED) list(APPEND COMPONENT_SRCS "multi_heap_poisoning.c") endif() +if(CONFIG_HEAP_TASK_TRACKING) + list(APPEND COMPONENT_SRCS "heap_task_info.c") +endif() + set(COMPONENT_ADD_INCLUDEDIRS "include") set(COMPONENT_REQUIRES "")