mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-31 09:15:13 +00:00
scripts: compiler_optimizations: added MSan target
This commit is contained in:
parent
4f78ec01cf
commit
ae66291272
@ -30,7 +30,7 @@ compiler_optimizations.CFLAGS['gottagofast'] = {
|
|||||||
}
|
}
|
||||||
'''
|
'''
|
||||||
|
|
||||||
VALID_BUILD_TYPES = ['fastnative', 'fast', 'release', 'debug', 'sanitize', 'none']
|
VALID_BUILD_TYPES = ['fastnative', 'fast', 'release', 'debug', 'sanitize', 'msan', 'none']
|
||||||
|
|
||||||
LINKFLAGS = {
|
LINKFLAGS = {
|
||||||
'common': {
|
'common': {
|
||||||
@ -38,6 +38,10 @@ LINKFLAGS = {
|
|||||||
'gcc': ['-Wl,--no-undefined'],
|
'gcc': ['-Wl,--no-undefined'],
|
||||||
'owcc': ['-Wl,option stack=512k']
|
'owcc': ['-Wl,option stack=512k']
|
||||||
},
|
},
|
||||||
|
'msan': {
|
||||||
|
'clang': ['-fsanitize=memory', '-pthread'],
|
||||||
|
'default': ['NO_MSAN_HERE']
|
||||||
|
},
|
||||||
'sanitize': {
|
'sanitize': {
|
||||||
'clang': ['-fsanitize=undefined', '-fsanitize=address', '-pthread'],
|
'clang': ['-fsanitize=undefined', '-fsanitize=address', '-pthread'],
|
||||||
'gcc': ['-fsanitize=undefined', '-fsanitize=address', '-pthread'],
|
'gcc': ['-fsanitize=undefined', '-fsanitize=address', '-pthread'],
|
||||||
@ -81,6 +85,10 @@ CFLAGS = {
|
|||||||
'owcc': ['-O0', '-fno-omit-frame-pointer', '-funwind-tables', '-fno-omit-leaf-frame-pointer'],
|
'owcc': ['-O0', '-fno-omit-frame-pointer', '-funwind-tables', '-fno-omit-leaf-frame-pointer'],
|
||||||
'default': ['-O0']
|
'default': ['-O0']
|
||||||
},
|
},
|
||||||
|
'msan': {
|
||||||
|
'clang': ['-O2', '-g', '-fno-omit-frame-pointer', '-fsanitize=memory', '-pthread'],
|
||||||
|
'default': ['NO_MSAN_HERE']
|
||||||
|
},
|
||||||
'sanitize': {
|
'sanitize': {
|
||||||
'msvc': ['/Od', '/RTC1', '/Zi', '/fsanitize=address'],
|
'msvc': ['/Od', '/RTC1', '/Zi', '/fsanitize=address'],
|
||||||
'gcc': ['-O0', '-fsanitize=undefined', '-fsanitize=address', '-pthread'],
|
'gcc': ['-O0', '-fsanitize=undefined', '-fsanitize=address', '-pthread'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user