Allow both address- and undefined behavior sanitizers at the same time

pull/1757/head
Gabríel Arthúr Pétursson 8 years ago committed by Jussi Pakkanen
parent d9939f0064
commit 39c7b0492c
  1. 5
      docs/markdown/Release-notes-for-0.42.0.md
  2. 2
      mesonbuild/compilers/compilers.py

@ -46,3 +46,8 @@ are `dylib` or `cdylib` for shared libraries, and `rlib` or
Rust's [linkage reference][rust-linkage].
[rust-linkage]: https://doc.rust-lang.org/reference/linkage.html
## Simultaneous use of Address- and Undefined Behavior Sanitizers
Both the address- and undefined behavior sanitizers can now be used
simultaneously by passing `-Db_sanitize=address,undefined` to Meson.

@ -207,7 +207,7 @@ base_options = {'b_pch': coredata.UserBooleanOption('b_pch', 'Use precompiled he
'b_lto': coredata.UserBooleanOption('b_lto', 'Use link time optimization', False),
'b_sanitize': coredata.UserComboOption('b_sanitize',
'Code sanitizer to use',
['none', 'address', 'thread', 'undefined', 'memory'],
['none', 'address', 'thread', 'undefined', 'memory', 'address,undefined'],
'none'),
'b_lundef': coredata.UserBooleanOption('b_lundef', 'Use -Wl,--no-undefined when linking', True),
'b_asneeded': coredata.UserBooleanOption('b_asneeded', 'Use -Wl,--as-needed when linking', True),

Loading…
Cancel
Save