Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: manually add global arguments for snitization
Browse files Browse the repository at this point in the history
jmillan committed Jul 18, 2024
1 parent f7ecfc1 commit 5307c24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions worker/meson.build
Original file line number Diff line number Diff line change
@@ -13,6 +13,9 @@ cpp_args = [
host_machine.endian() == 'little' ? '-DMS_LITTLE_ENDIAN' : '-DMS_BIG_ENDIAN',
]

add_global_arguments('-fsanitize=address', language: 'cpp')
add_global_link_arguments('-fsanitize=address', language: 'cpp')

if host_machine.system() == 'windows'
cpp_args += [
'-DNOMINMAX', # Don't define min and max macros (windows.h)

0 comments on commit 5307c24

Please sign in to comment.