Răsfoiți Sursa

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
Paul Reimer 7 ani în urmă
părinte
comite
b358581ab8
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 4 0
      components/heap/CMakeLists.txt

+ 4 - 0
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 "")