1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Reorder allocator list

This commit is contained in:
Brian Fiete 2022-06-03 06:33:12 -07:00
parent babfc2395e
commit 60403e6b51
3 changed files with 5 additions and 5 deletions

View file

@ -741,6 +741,9 @@ namespace IDE.Compiler
String freeLinkName;
switch (options.mAllocType)
{
case .CRT:
mallocLinkName = "malloc";
freeLinkName = "free";
case .Debug:
optionFlags |= .DebugAlloc;
mallocLinkName = "";
@ -748,9 +751,6 @@ namespace IDE.Compiler
case .Stomp:
mallocLinkName = "StompAlloc";
freeLinkName = "StompFree";
case .CRT:
mallocLinkName = "malloc";
freeLinkName = "free";
case .JEMalloc, .JEMalloc_Debug:
mallocLinkName = "je_malloc";
freeLinkName = "je_free";

View file

@ -214,9 +214,9 @@ namespace IDE
public enum AllocType
{
CRT,
Debug,
Stomp,
CRT,
JEMalloc,
JEMalloc_Debug,
TCMalloc,

View file

@ -734,7 +734,7 @@ namespace IDE.ui
AddPropertiesItem(category, "Incremental Build", "mIncrementalBuild");
AddPropertiesItem(category, "Intermediate Type", "mIntermediateType");
var (allocCategory, allocPropEntry) = AddPropertiesItem(category, "Memory Allocator", "mAllocType",
scope String[] ("Debug", "Stomp (Debug)", "CRT", "JEMalloc", "JEMalloc Debug", "TCMalloc", "TCMalloc Debug"));
scope String[] ("CRT", "Debug", "Stomp (Paranoid)", "JEMalloc", "JEMalloc Debug", "TCMalloc", "TCMalloc Debug"));
var (mallocItem, mallocPropEntry) = AddPropertiesItem(allocCategory, "Malloc", "mAllocMalloc");
var (freeItem, freePropEntry) = AddPropertiesItem(allocCategory, "Free", "mAllocFree");
allocPropEntry.mOnUpdate.Add(new () =>