If you use either of these tools, you need to
use the --comptype prefix setting when configuring Coverity
Analysis for your compiler, as shown in the examples below. This setting can
help avoid unexpected defect reports.
'ccache' configuration
If you use
ccache (for example, with gcc),
your cov-configure command line should specify the following:
> cov-configure --comptype prefix --compiler ccache> cov-configure --comptype gcc --compiler gcc
'distcc' configuration
-
If
ccacheis set up to executedistcc(for example, through the CCACHE_PREFIX variable), it is only necessary to configure the prefix forccache. -
If your
distccinstallation uses the name of the underlying compiler (for example,gcc -c sampleProgram.c, wheregccis reallydistcc), yourcov-configurecommand line should specify the following:> cov-configure --comptype <comptype_of_real_compiler> \ --compiler <distcc_executable_name> -
If you are prepending
distccto compiler command lines (for example,distcc gcc -c sampleProgram.c), yourcov-configurecommand line should specify the following:> cov-configure --comptype prefix --compiler distcc> cov-configure --comptype <comptype_of_real_compiler> \ --compiler <first_argument_to_distcc>The first argument to
distccis the name of executable for the real compiler, for example,gcc. -
If
distccis used directly as a compiler (for example,distcc -c sampleProgram.c), your command line should specify the following:> cov-configure --comptype <comptype_of_real_compiler> \ --compiler distcc