From f5ccf093d6213d5bc94412e97bcca0a9a424896c Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 30 Sep 2021 15:58:45 +0300 Subject: [PATCH] scripts: waifulib: fix build with sanitizers on --- scripts/waifulib/compiler_optimizations.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/waifulib/compiler_optimizations.py b/scripts/waifulib/compiler_optimizations.py index 5c911eed..a832c7ae 100644 --- a/scripts/waifulib/compiler_optimizations.py +++ b/scripts/waifulib/compiler_optimizations.py @@ -39,8 +39,8 @@ LINKFLAGS = { 'owcc': ['-Wl,option stack=512k'] }, 'sanitize': { - 'clang': ['-fsanitize=undefined', '-fsanitize=address'], - 'gcc': ['-fsanitize=undefined', '-fsanitize=address'], + 'clang': ['-fsanitize=undefined', '-fsanitize=address', '-pthread'], + 'gcc': ['-fsanitize=undefined', '-fsanitize=address', '-pthread'], }, 'debug': { 'msvc': ['/INCREMENTAL', '/SAFESEH:NO'] @@ -82,8 +82,8 @@ CFLAGS = { }, 'sanitize': { 'msvc': ['/Od', '/RTC1', '/Zi'], - 'gcc': ['-Og', '-fsanitize=undefined', '-fsanitize=address'], - 'clang': ['-O0', '-fsanitize=undefined', '-fsanitize=address'], + 'gcc': ['-Og', '-fsanitize=undefined', '-fsanitize=address', '-pthread'], + 'clang': ['-O0', '-fsanitize=undefined', '-fsanitize=address', '-pthread'], 'default': ['-O0'] }, 'nooptimize': {