diff --git a/docs/markdown/howtox.md b/docs/markdown/howtox.md index c4aa9c553..4e7e2203a 100644 --- a/docs/markdown/howtox.md +++ b/docs/markdown/howtox.md @@ -125,6 +125,12 @@ Install scan-build and configure your project. Then do this: $ ninja scan-build ``` +You can use the `SCAN_BUILD` environment variable to choose the scan-build executable. +```console +$ SCAN_BUILD= ninja scan-build +``` + + ## Use profile guided optimization Using profile guided optimization with GCC is a two phase operation. First we set up the project with profile measurements enabled and compile it.