summary refs log tree commit diff
path: root/pkgs/development/libraries/v8
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-03-13 19:21:47 +0100
committerDaiderd Jordan <daiderd@gmail.com>2018-03-13 19:21:47 +0100
commit15ee5ff446e494e420ce8fb5d05f7119f1f9753f (patch)
tree61d24fc22ca0c8ad48c87229f003570ff211d54f /pkgs/development/libraries/v8
parent134af4c5ac81992b8541c5076489a9fc3807ba32 (diff)
downloadnixpkgs-15ee5ff446e494e420ce8fb5d05f7119f1f9753f.tar
nixpkgs-15ee5ff446e494e420ce8fb5d05f7119f1f9753f.tar.gz
nixpkgs-15ee5ff446e494e420ce8fb5d05f7119f1f9753f.tar.bz2
nixpkgs-15ee5ff446e494e420ce8fb5d05f7119f1f9753f.tar.lz
nixpkgs-15ee5ff446e494e420ce8fb5d05f7119f1f9753f.tar.xz
nixpkgs-15ee5ff446e494e420ce8fb5d05f7119f1f9753f.tar.zst
nixpkgs-15ee5ff446e494e420ce8fb5d05f7119f1f9753f.zip
v8: only use -Wno-error=unused-lambda-capture with clang
Diffstat (limited to 'pkgs/development/libraries/v8')
-rw-r--r--pkgs/development/libraries/v8/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/libraries/v8/default.nix b/pkgs/development/libraries/v8/default.nix
index 3e54a02bb4e..f14ec4fc608 100644
--- a/pkgs/development/libraries/v8/default.nix
+++ b/pkgs/development/libraries/v8/default.nix
@@ -160,7 +160,8 @@ stdenv.mkDerivation rec {
     ++ stdenv.lib.optional stdenv.isDarwin cctools
     ++ stdenv.lib.optional stdenv.isLinux patchelf;
 
-  NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow -Wno-error=unused-function -Wno-error=attributes -Wno-error=unused-lambda-capture";
+  NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow -Wno-error=unused-function -Wno-error=attributes"
+    + stdenv.lib.optionalString stdenv.cc.isClang " -Wno-error=unused-lambda-capture";
 
   buildFlags = [
     "LINK=c++"