You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmake/config-memory.cmake
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,11 @@
1
1
# Game Memory features
2
2
option(RTS_GAMEMEMORY_ENABLE"Enables the memory pool and dynamic memory allocator."ON)
3
3
4
+
# Disable Game Memory if ASAN is enabled - Game Memory overrides new/delete and interferes with ASAN
5
+
if(RTS_BUILD_OPTION_ASAN)
6
+
set(RTS_GAMEMEMORY_ENABLEOFF)
7
+
endif()
8
+
4
9
# Memory pool features
5
10
option(RTS_MEMORYPOOL_OVERRIDE_MALLOC"Enables the Dynamic Memory Allocator for malloc calls."OFF)
6
11
option(RTS_MEMORYPOOL_MPSB_DLINK"Adds a backlink to MemoryPoolSingleBlock. Makes it faster to free raw DMA blocks, but increases memory consumption."ON)
0 commit comments