1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 14:24:10 +02:00

Added JEMalloc/TCMalloc options

This commit is contained in:
Brian Fiete 2022-06-02 17:57:09 -07:00
parent 652142e189
commit 8c16454006
7 changed files with 89 additions and 28 deletions

View file

@ -751,12 +751,12 @@ namespace IDE.Compiler
case .CRT:
mallocLinkName = "malloc";
freeLinkName = "free";
case .JEMalloc:
case .JEMalloc, .JEMalloc_Debug:
mallocLinkName = "je_malloc";
freeLinkName = "je_free";
case .TCMalloc:
mallocLinkName = "tcmalloc";
freeLinkName = "tcfree";
case .TCMalloc, .TCMalloc_Debug:
mallocLinkName = "tc_malloc";
freeLinkName = "tc_free";
case .Custom:
mallocLinkName = options.mAllocMalloc;
freeLinkName = options.mAllocFree;