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