mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
v8: only use -Wno-error=unused-lambda-capture with clang
This commit is contained in:
parent
134af4c5ac
commit
15ee5ff446
1 changed files with 2 additions and 1 deletions
|
@ -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++"
|
||||
|
|
Loading…
Reference in a new issue