From 086dd255106fee01339cf499f1a502ac2dd534d5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 31 Aug 2009 15:02:27 +0000 Subject: [PATCH] * Use --coverage, which is identical to -fprofile-arcs -ftest-coverage. svn path=/nixpkgs/trunk/; revision=16903 --- pkgs/build-support/release/nix-build.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/release/nix-build.nix b/pkgs/build-support/release/nix-build.nix index db005dbd052..21fe1c81218 100644 --- a/pkgs/build-support/release/nix-build.nix +++ b/pkgs/build-support/release/nix-build.nix @@ -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