* Use --coverage, which is identical to -fprofile-arcs -ftest-coverage.

svn path=/nixpkgs/trunk/; revision=16903
This commit is contained in:
Eelco Dolstra 2009-08-31 15:02:27 +00:00
parent 54a5ad0c6f
commit 086dd25510

View file

@ -58,7 +58,7 @@ stdenv.mkDerivation (
# Set GCC flags for coverage analysis, if desired.
if test -n "${toString doCoverageAnalysis}"; then
export NIX_CFLAGS_COMPILE="-O0 -fprofile-arcs -ftest-coverage $NIX_CFLAGS_COMPILE"
export NIX_CFLAGS_COMPILE="-O0 --coverage $NIX_CFLAGS_COMPILE"
export CFLAGS="-O0"
export CXXFLAGS="-O0"
fi