Skip to content
Snippets Groups Projects
Commit 434ec96d authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

Fix Apple clang do not support LeakSanitizer

parent 940059bd
Branches
Tags
1 merge request!32Add fuzzing testing setup
...@@ -36,7 +36,6 @@ test_env.set('ASAN_OPTIONS', ...@@ -36,7 +36,6 @@ test_env.set('ASAN_OPTIONS',
'allocator_may_return_null=1', 'allocator_may_return_null=1',
'allocator_release_to_os_interval_ms=500', 'allocator_release_to_os_interval_ms=500',
'detect_container_overflow=1', 'detect_container_overflow=1',
'detect_leaks=1',
'detect_stack_use_after_return=1', 'detect_stack_use_after_return=1',
'fast_unwind_on_fatal=0','handle_abort=1', 'fast_unwind_on_fatal=0','handle_abort=1',
'handle_segv=1', 'handle_segv=1',
...@@ -49,6 +48,10 @@ test_env.set('ASAN_OPTIONS', ...@@ -49,6 +48,10 @@ test_env.set('ASAN_OPTIONS',
'use_sigaltstack=1', 'use_sigaltstack=1',
'dedup_token_length=3' 'dedup_token_length=3'
) )
if cc.has_argument('-fsanitize=leak')
test_env.append('ASAN_OPTIONS', 'detect_leaks=1')
endif
test_env.set('UBSAN_OPTIONS', test_env.set('UBSAN_OPTIONS',
'abort_on_error=1', 'abort_on_error=1',
'print_stacktrace=1', 'print_stacktrace=1',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment