2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 09:56:22 +01:00

add /fsanitize=address for msvc (windows) when sanitize

This commit is contained in:
NightFox 2022-01-15 22:41:33 +03:00 committed by a1batross
parent 5aa6bfee85
commit bb84a3cb7f

View File

@ -41,6 +41,7 @@ LINKFLAGS = {
'sanitize': {
'clang': ['-fsanitize=undefined', '-fsanitize=address', '-pthread'],
'gcc': ['-fsanitize=undefined', '-fsanitize=address', '-pthread'],
'msvc': ['/SAFESEH:NO']
},
'debug': {
'msvc': ['/INCREMENTAL', '/SAFESEH:NO']
@ -81,7 +82,7 @@ CFLAGS = {
'default': ['-O0']
},
'sanitize': {
'msvc': ['/Od', '/RTC1', '/Zi'],
'msvc': ['/Od', '/RTC1', '/Zi', '/fsanitize=address'],
'gcc': ['-O0', '-fsanitize=undefined', '-fsanitize=address', '-pthread'],
'clang': ['-O0', '-fsanitize=undefined', '-fsanitize=address', '-pthread'],
'default': ['-O0']