diff options
| author | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2022-06-02 02:57:23 +0200 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2022-06-06 09:40:14 -0700 |
| commit | 29c26d5b26397eaa3606d22d71309ecd1eb6b223 (patch) | |
| tree | e9aa3fb6d0ee9491a276b861f504ac3c07db445b /mesonbuild/compilers/compilers.py | |
| parent | 3e2dba5b7cd107f60474b3cb01c307a9e2354868 (diff) | |
| download | meson-29c26d5b26397eaa3606d22d71309ecd1eb6b223.tar.gz | |
compilers: Add support for stand-alone leak sanitizer
Leak sanitizer can be enabled without the whole AddressSanitizer, this
can be done by passing -fsanitize=leak as documented at [1].
Meson doesn't support this, so add support for it.
[1] https://clang.llvm.org/docs/LeakSanitizer.html
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
| -rw-r--r-- | mesonbuild/compilers/compilers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 03c1199a5..18ba6e951 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -278,7 +278,7 @@ base_options: 'KeyedOptionDictType' = { ['default', 'thin'], 'default'), OptionKey('b_sanitize'): coredata.UserComboOption('Code sanitizer to use', - ['none', 'address', 'thread', 'undefined', 'memory', 'address,undefined'], + ['none', 'address', 'thread', 'undefined', 'memory', 'leak', 'address,undefined'], 'none'), OptionKey('b_lundef'): coredata.UserBooleanOption('Use -Wl,--no-undefined when linking', True), OptionKey('b_asneeded'): coredata.UserBooleanOption('Use -Wl,--as-needed when linking', True), |
