v8: only use -Wno-error=unused-lambda-capture with clang
This commit is contained in:
parent
134af4c5ac
commit
15ee5ff446
@ -160,7 +160,8 @@ stdenv.mkDerivation rec {
|
|||||||
++ stdenv.lib.optional stdenv.isDarwin cctools
|
++ stdenv.lib.optional stdenv.isDarwin cctools
|
||||||
++ stdenv.lib.optional stdenv.isLinux patchelf;
|
++ 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 = [
|
buildFlags = [
|
||||||
"LINK=c++"
|
"LINK=c++"
|
||||||
|
Loading…
Reference in New Issue
Block a user