[cfe-dev] scan-build failure

Ted Kremenek kremenek at apple.com
Mon Aug 30 13:11:04 PDT 2010


scan-build is not smart enough to know what compiler your build intended to use.  It defaults to assuming 'gcc', since that is still the standard compiler used on most systems.

To correct this, check out the --use-cc option to scan-build

 --use-cc [compiler path]   - By default, scan-build uses 'gcc' to compile and link
 --use-cc=[compiler path]     your C and Objective-C code. Use this option
                              to specify an alternate compiler.

 --use-c++ [compiler path]  - By default, scan-build uses 'g++' to compile and link
 --use-c++=[compiler path]    your C++ and Objective-C++ code. Use this option
                              to specify an alternate compiler.



On Aug 30, 2010, at 1:07 PM, Michael Blumenkrantz wrote:

> No, I was just assuming it would default to using clang?





More information about the cfe-dev mailing list