mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
scripts: waifulib: fix build with sanitizers on
This commit is contained in:
@@ -39,8 +39,8 @@ LINKFLAGS = {
|
|||||||
'owcc': ['-Wl,option stack=512k']
|
'owcc': ['-Wl,option stack=512k']
|
||||||
},
|
},
|
||||||
'sanitize': {
|
'sanitize': {
|
||||||
'clang': ['-fsanitize=undefined', '-fsanitize=address'],
|
'clang': ['-fsanitize=undefined', '-fsanitize=address', '-pthread'],
|
||||||
'gcc': ['-fsanitize=undefined', '-fsanitize=address'],
|
'gcc': ['-fsanitize=undefined', '-fsanitize=address', '-pthread'],
|
||||||
},
|
},
|
||||||
'debug': {
|
'debug': {
|
||||||
'msvc': ['/INCREMENTAL', '/SAFESEH:NO']
|
'msvc': ['/INCREMENTAL', '/SAFESEH:NO']
|
||||||
@@ -82,8 +82,8 @@ CFLAGS = {
|
|||||||
},
|
},
|
||||||
'sanitize': {
|
'sanitize': {
|
||||||
'msvc': ['/Od', '/RTC1', '/Zi'],
|
'msvc': ['/Od', '/RTC1', '/Zi'],
|
||||||
'gcc': ['-Og', '-fsanitize=undefined', '-fsanitize=address'],
|
'gcc': ['-Og', '-fsanitize=undefined', '-fsanitize=address', '-pthread'],
|
||||||
'clang': ['-O0', '-fsanitize=undefined', '-fsanitize=address'],
|
'clang': ['-O0', '-fsanitize=undefined', '-fsanitize=address', '-pthread'],
|
||||||
'default': ['-O0']
|
'default': ['-O0']
|
||||||
},
|
},
|
||||||
'nooptimize': {
|
'nooptimize': {
|
||||||
|
|||||||
Reference in New Issue
Block a user