v8: only use -Wno-error=unused-lambda-capture with clang

This commit is contained in:
Daiderd Jordan 2018-03-13 19:21:47 +01:00
parent 134af4c5ac
commit 15ee5ff446
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -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++"