Browse Source

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

pull/2/head
NightFox 3 years ago committed by a1batross
parent
commit
bb84a3cb7f
  1. 3
      scripts/waifulib/compiler_optimizations.py

3
scripts/waifulib/compiler_optimizations.py

@ -41,6 +41,7 @@ LINKFLAGS = {
'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'],
'msvc': ['/SAFESEH:NO']
}, },
'debug': { 'debug': {
'msvc': ['/INCREMENTAL', '/SAFESEH:NO'] 'msvc': ['/INCREMENTAL', '/SAFESEH:NO']
@ -81,7 +82,7 @@ CFLAGS = {
'default': ['-O0'] 'default': ['-O0']
}, },
'sanitize': { 'sanitize': {
'msvc': ['/Od', '/RTC1', '/Zi'], 'msvc': ['/Od', '/RTC1', '/Zi', '/fsanitize=address'],
'gcc': ['-O0', '-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']

Loading…
Cancel
Save