From c6539367007cf3756a022083390fb8cd982c4365 Mon Sep 17 00:00:00 2001 From: Christoph Behle Date: Sat, 18 Nov 2017 13:52:04 +0100 Subject: [PATCH] Documentation: Add note about SCAN_BUILD When running ninja scan-build you can use the environment variable SCAN_BUILD to choose the right executable. --- docs/markdown/howtox.md | 6 ++++++ 1 file changed, 6 insertions(+) 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.