From 15ee5ff446e494e420ce8fb5d05f7119f1f9753f Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Tue, 13 Mar 2018 19:21:47 +0100 Subject: [PATCH] v8: only use -Wno-error=unused-lambda-capture with clang --- pkgs/development/libraries/v8/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++"