Turn back on system's allocator

This commit is contained in:
unknown 2024-08-24 16:06:55 +02:00
parent b4fabb845e
commit 0bfa931400
2 changed files with 8 additions and 8 deletions

View file

@ -54,35 +54,35 @@ CFLAGS = {
'owcc': ['-fno-short-enum', '-ffloat-store', '-g0']
},
'fast': {
'msvc': ['/O2', '/Oy', '/MT'],
'msvc': ['/O2', '/Oy', '/MD'],
'gcc': ['-Ofast'],
'clang': ['-Ofast'],
'default': ['-O3']
},
'fastnative': {
'msvc': ['/O2', '/Oy', '/MT'],
'msvc': ['/O2', '/Oy', '/MD'],
'gcc': ['-O2', '-march=native', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer'],
'clang': ['-O2', '-march=native'],
'default': ['-O3']
},
'release': {
'msvc': ['/O2', '/MT'],
'msvc': ['/O2', '/MD'],
'owcc': ['-O3', '-fomit-leaf-frame-pointer', '-fomit-frame-pointer', '-finline-functions', '-finline-limit=512'],
'default': ['-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math']
},
'debug': {
'msvc': ['/Od', '/MTd'],
'msvc': ['/Od', '/MDd'],
'owcc': ['-g', '-O0', '-fno-omit-frame-pointer', '-funwind-tables', '-fno-omit-leaf-frame-pointer'],
'default': ['-g', '-O0'] #, '-ftree-vectorize', '-ffast-math']
},
'sanitize': {
'msvc': ['/Od', '/RTC1', '/MTd'],
'msvc': ['/Od', '/RTC1', '/MDd'],
'gcc': ['-Og', '-fsanitize=undefined', '-fsanitize=address'],
'clang': ['-O0', '-fsanitize=undefined', '-fsanitize=address'],
'default': ['-O0']
},
'nooptimize': {
'msvc': ['/Od', '/MTd'],
'msvc': ['/Od', '/MDd'],
'default': ['-O0']
}
}

View file

@ -266,8 +266,8 @@ def define_platform(conf):
'_DLL_EXT=.so'
])
#conf.define('NO_MEMOVERRIDE_NEW_DELETE', 1)
#conf.define('NO_MALLOC_OVERRIDE', 1)
conf.define('NO_MEMOVERRIDE_NEW_DELETE', 1)
conf.define('NO_MALLOC_OVERRIDE', 1)
conf.define('MEMALLOC_SUPPORTS_ALIGNED_ALLOCATIONS', 1)