summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2016-03-28 17:07:37 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2016-03-28 17:13:40 +0200
commit72b5bfda97dadf2ac2f01d8dd20bc19c6d9617bd (patch)
treef2a2a658180e02c965d22810b57f0c38e3f6e761 /pkgs/development/libraries
parentc61445357e2a92470bee43a71a10baef1a3196e4 (diff)
downloadnixpkgs-72b5bfda97dadf2ac2f01d8dd20bc19c6d9617bd.tar
nixpkgs-72b5bfda97dadf2ac2f01d8dd20bc19c6d9617bd.tar.gz
nixpkgs-72b5bfda97dadf2ac2f01d8dd20bc19c6d9617bd.tar.bz2
nixpkgs-72b5bfda97dadf2ac2f01d8dd20bc19c6d9617bd.tar.lz
nixpkgs-72b5bfda97dadf2ac2f01d8dd20bc19c6d9617bd.tar.xz
nixpkgs-72b5bfda97dadf2ac2f01d8dd20bc19c6d9617bd.tar.zst
nixpkgs-72b5bfda97dadf2ac2f01d8dd20bc19c6d9617bd.zip
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.
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/v8/generic.nix6
1 files changed, 6 insertions, 0 deletions
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 = ''