scripts: waifulib: remove nooptimize build type, use debug instead. Disable optimization for sanitize builds

This commit is contained in:
Alibek Omarov 2022-01-04 01:58:45 +03:00
parent c619bb4af7
commit f1a4d66d27
1 changed files with 2 additions and 6 deletions

View File

@ -30,7 +30,7 @@ compiler_optimizations.CFLAGS['gottagofast'] = {
} }
''' '''
VALID_BUILD_TYPES = ['fastnative', 'fast', 'release', 'debug', 'nooptimize', 'sanitize', 'none'] VALID_BUILD_TYPES = ['fastnative', 'fast', 'release', 'debug', 'sanitize', 'none']
LINKFLAGS = { LINKFLAGS = {
'common': { 'common': {
@ -82,14 +82,10 @@ CFLAGS = {
}, },
'sanitize': { 'sanitize': {
'msvc': ['/Od', '/RTC1', '/Zi'], 'msvc': ['/Od', '/RTC1', '/Zi'],
'gcc': ['-Og', '-fsanitize=undefined', '-fsanitize=address', '-pthread'], 'gcc': ['-O0', '-fsanitize=undefined', '-fsanitize=address', '-pthread'],
'clang': ['-O0', '-fsanitize=undefined', '-fsanitize=address', '-pthread'], 'clang': ['-O0', '-fsanitize=undefined', '-fsanitize=address', '-pthread'],
'default': ['-O0'] 'default': ['-O0']
}, },
'nooptimize': {
'msvc': ['/Od', '/Zi'],
'default': ['-O0']
}
} }
LTO_CFLAGS = { LTO_CFLAGS = {