v8: fix clang build

/cc ZHF #36454
This commit is contained in:
Daiderd Jordan 2018-03-12 21:08:44 +01:00
parent 8eca63588d
commit 0c629e9c23
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -156,10 +156,11 @@ stdenv.mkDerivation rec {
'';
nativeBuildInputs = [ which ];
buildInputs = [ readline python icu patchelf ]
++ stdenv.lib.optionals stdenv.isDarwin [ cctools ];
buildInputs = [ readline python icu ]
++ 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";
NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow -Wno-error=unused-function -Wno-error=attributes -Wno-error=unused-lambda-capture";
buildFlags = [
"LINK=c++"