Turn back on system's allocator
This commit is contained in:
parent
b4fabb845e
commit
0bfa931400
2 changed files with 8 additions and 8 deletions
|
@ -54,35 +54,35 @@ CFLAGS = {
|
||||||
'owcc': ['-fno-short-enum', '-ffloat-store', '-g0']
|
'owcc': ['-fno-short-enum', '-ffloat-store', '-g0']
|
||||||
},
|
},
|
||||||
'fast': {
|
'fast': {
|
||||||
'msvc': ['/O2', '/Oy', '/MT'],
|
'msvc': ['/O2', '/Oy', '/MD'],
|
||||||
'gcc': ['-Ofast'],
|
'gcc': ['-Ofast'],
|
||||||
'clang': ['-Ofast'],
|
'clang': ['-Ofast'],
|
||||||
'default': ['-O3']
|
'default': ['-O3']
|
||||||
},
|
},
|
||||||
'fastnative': {
|
'fastnative': {
|
||||||
'msvc': ['/O2', '/Oy', '/MT'],
|
'msvc': ['/O2', '/Oy', '/MD'],
|
||||||
'gcc': ['-O2', '-march=native', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer'],
|
'gcc': ['-O2', '-march=native', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer'],
|
||||||
'clang': ['-O2', '-march=native'],
|
'clang': ['-O2', '-march=native'],
|
||||||
'default': ['-O3']
|
'default': ['-O3']
|
||||||
},
|
},
|
||||||
'release': {
|
'release': {
|
||||||
'msvc': ['/O2', '/MT'],
|
'msvc': ['/O2', '/MD'],
|
||||||
'owcc': ['-O3', '-fomit-leaf-frame-pointer', '-fomit-frame-pointer', '-finline-functions', '-finline-limit=512'],
|
'owcc': ['-O3', '-fomit-leaf-frame-pointer', '-fomit-frame-pointer', '-finline-functions', '-finline-limit=512'],
|
||||||
'default': ['-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math']
|
'default': ['-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math']
|
||||||
},
|
},
|
||||||
'debug': {
|
'debug': {
|
||||||
'msvc': ['/Od', '/MTd'],
|
'msvc': ['/Od', '/MDd'],
|
||||||
'owcc': ['-g', '-O0', '-fno-omit-frame-pointer', '-funwind-tables', '-fno-omit-leaf-frame-pointer'],
|
'owcc': ['-g', '-O0', '-fno-omit-frame-pointer', '-funwind-tables', '-fno-omit-leaf-frame-pointer'],
|
||||||
'default': ['-g', '-O0'] #, '-ftree-vectorize', '-ffast-math']
|
'default': ['-g', '-O0'] #, '-ftree-vectorize', '-ffast-math']
|
||||||
},
|
},
|
||||||
'sanitize': {
|
'sanitize': {
|
||||||
'msvc': ['/Od', '/RTC1', '/MTd'],
|
'msvc': ['/Od', '/RTC1', '/MDd'],
|
||||||
'gcc': ['-Og', '-fsanitize=undefined', '-fsanitize=address'],
|
'gcc': ['-Og', '-fsanitize=undefined', '-fsanitize=address'],
|
||||||
'clang': ['-O0', '-fsanitize=undefined', '-fsanitize=address'],
|
'clang': ['-O0', '-fsanitize=undefined', '-fsanitize=address'],
|
||||||
'default': ['-O0']
|
'default': ['-O0']
|
||||||
},
|
},
|
||||||
'nooptimize': {
|
'nooptimize': {
|
||||||
'msvc': ['/Od', '/MTd'],
|
'msvc': ['/Od', '/MDd'],
|
||||||
'default': ['-O0']
|
'default': ['-O0']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
4
wscript
4
wscript
|
@ -266,8 +266,8 @@ def define_platform(conf):
|
||||||
'_DLL_EXT=.so'
|
'_DLL_EXT=.so'
|
||||||
])
|
])
|
||||||
|
|
||||||
#conf.define('NO_MEMOVERRIDE_NEW_DELETE', 1)
|
conf.define('NO_MEMOVERRIDE_NEW_DELETE', 1)
|
||||||
#conf.define('NO_MALLOC_OVERRIDE', 1)
|
conf.define('NO_MALLOC_OVERRIDE', 1)
|
||||||
|
|
||||||
conf.define('MEMALLOC_SUPPORTS_ALIGNED_ALLOCATIONS', 1)
|
conf.define('MEMALLOC_SUPPORTS_ALIGNED_ALLOCATIONS', 1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue