]> granicus.if.org Git - esp-idf/commitdiff
heap: Compile heap_task_info.c conditionally on CONFIG_HEAP_TASK_TRACKING in heap...
authorPaul Reimer <paul@p-rimes.net>
Sun, 30 Sep 2018 23:45:51 +0000 (16:45 -0700)
committerMahavir Jain <mahavir@espressif.com>
Thu, 8 Nov 2018 10:27:11 +0000 (15:57 +0530)
Merges https://github.com/espressif/esp-idf/pull/2498

components/heap/CMakeLists.txt

index 6492aefd512c139ed2b8160e90fdd898eebb824b..073635b7a5787b4ec65ff3c52e29f14e15aa8aec 100644 (file)
@@ -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 "")