mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
12 lines
421 B
Meson
12 lines
421 B
Meson
asan_test_options_env = {
|
|
'ASAN_OPTIONS' : 'abort_on_error=1:print_summary=1:detect_leaks=0',
|
|
}
|
|
|
|
# Clang gets grumpy about missing libasan symbols if -shared-libasan is not
|
|
# passed when building shared libs, at least on Linux
|
|
if cxx.get_id() == 'clang' and ('address' in get_option('b_sanitize') or 'undefined' in get_option(
|
|
'b_sanitize',
|
|
))
|
|
add_project_link_arguments('-shared-libasan', language : 'cpp')
|
|
endif
|
|
|