From 6eb110eaa4c5b9beb80602833e4c4233aea0136c Mon Sep 17 00:00:00 2001 From: Julian Nguyen <109386615+juliannguyen4@users.noreply.github.com> Date: Mon, 28 Oct 2024 10:17:14 -0700 Subject: [PATCH] fix --- setup.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 9d47cf1cd..8e09dd151 100644 --- a/setup.py +++ b/setup.py @@ -87,18 +87,16 @@ SANITIZER=os.getenv('SANITIZER') if SANITIZER: - sanitizer_cflags = [ + sanitizer_c_and_ld_flags = [ '-fsanitize=address', - '-fsanitize-recover=all', '-fno-omit-frame-pointer' ] + sanitizer_cflags = sanitizer_c_and_ld_flags.copy() + sanitizer_cflags.append('-fsanitize-recover=all') extra_compile_args.extend(sanitizer_cflags) - sanitizer_ldflags = [ - "-static-libasan" - ] + sanitizer_ldflags = sanitizer_c_and_ld_flags.copy() extra_link_args.extend(sanitizer_ldflags) - extra_link_args.extend(sanitizer_cflags) library_dirs = ['/usr/local/opt/openssl/lib', '/usr/local/lib'] libraries = [