Add information about sanitizer support to README.md. BUG=aomedia:736 Change-Id: I628b809caf98215ff2082eca3926247da555f9d3
diff --git a/README.md b/README.md index 533a1da..773fc40 100644 --- a/README.md +++ b/README.md
@@ -109,6 +109,20 @@ suffixed with gcc behave differently than the others. These toolchain files attempt to obey the $CROSS environment variable. +### Sanitizers + +Sanitizer integration is built-in to the CMake build system. To enable a +sanitizer, add `-DSANITIZE=<type>` to the CMake command line. For example, to +enable address sanitizer: + +~~~ + $ cmake path/to/aom -DSANITIZE=address + $ make +~~~ + +Sanitizers available vary by platform, target, and compiler. Consult your +compiler documentation to determine which, if any, are available. + ### Microsoft Visual Studio builds Building the AV1 codec library in Microsoft Visual Studio is supported. The