From 72b5bfda97dadf2ac2f01d8dd20bc19c6d9617bd Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Mon, 28 Mar 2016 17:07:37 +0200 Subject: v8: fix build(s) Ignore errors due to strict-overflow warnings; strip clang-only flag on non-clang builds. Concerning the latter "fix", it's not entirely clear to me why the -Wno-format-pedantic flag ends up being passed to gcc, the .gyp file appears to already condition the inclusion of this flag on whether cc=clang. --- pkgs/development/libraries/v8/generic.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkgs/development/libraries') diff --git a/pkgs/development/libraries/v8/generic.nix b/pkgs/development/libraries/v8/generic.nix index 51637fe6dbd..349b35549b6 100644 --- a/pkgs/development/libraries/v8/generic.nix +++ b/pkgs/development/libraries/v8/generic.nix @@ -41,6 +41,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ which ]; buildInputs = [ readline python icu ]; + NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow"; + buildFlags = [ "LINK=g++" "-C out" @@ -48,6 +50,10 @@ stdenv.mkDerivation rec { "BUILDTYPE=Release" ]; + postPatch = stdenv.lib.optionalString (!stdenv.cc.isClang) '' + sed -i build/standalone.gyp -e 's,-Wno-format-pedantic,,g' + ''; + enableParallelBuilding = true; installPhase = '' -- cgit 1.4.1