diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-03-09 18:17:36 +0000 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-03-09 21:41:52 +0200 |
commit | 2ce0e94060d002e58522ffd1acefcaf7240ead4b (patch) | |
tree | e1d0598b71f11b2aa378aec6629d8e5fb800b67d /docs/markdown | |
parent | c83106ee38048acbe737ef112e8d51c9b5bd42d7 (diff) | |
download | meson-vsasan.tar.gz |
Add address sanitizer support for Visual Studio.vsasan
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Builtin-options.md | 4 | ||||
-rw-r--r-- | docs/markdown/snippets/vsasan.md | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/docs/markdown/Builtin-options.md b/docs/markdown/Builtin-options.md index e3805ac00..ce33fce45 100644 --- a/docs/markdown/Builtin-options.md +++ b/docs/markdown/Builtin-options.md @@ -138,7 +138,9 @@ available on all platforms or with all compilers: | b_vscrt | from_buildtype | none, md, mdd, mt, mtd, from_buildtype, static_from_buildtype | VS runtime library to use (since 0.48.0) (static_from_buildtype since 0.56.0) | The value of `b_sanitize` can be one of: `none`, `address`, `thread`, -`undefined`, `memory`, `address,undefined`. +`undefined`, `memory`, `address,undefined`, but note that some +compilers might not support all of them. For example Visual Studio +only supports the address sanitizer. * < 0 means disable, == 0 means automatic selection, > 0 sets a specific number to use diff --git a/docs/markdown/snippets/vsasan.md b/docs/markdown/snippets/vsasan.md new file mode 100644 index 000000000..287400ef9 --- /dev/null +++ b/docs/markdown/snippets/vsasan.md @@ -0,0 +1,6 @@ +## Address sanitizer support for Visual Studio + +The `b_sanitize` option for enabling Address sanitizer now works with +the Visual Studio compilers. This requires [a sufficiently new version +of Visual +Studio](https://devblogs.microsoft.com/cppblog/address-sanitizer-for-msvc-now-generally-available/). |