Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Oct 28, 2024
1 parent 2b8953b commit 6eb110e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 6eb110e

Please sign in to comment.