v8: fix 4.5.107 build

Similar to #14272, but fixes 4.5 build rather than generic.
- Ignores errors due to strict-overflow warnings
- Strips clang-only '-Wno-format-pedantic' flag out since this build
  uses gcc
This commit is contained in:
Proglodyte
2016-07-23 03:41:14 -04:00
parent d5adf1348b
commit 16bd51fc0d
2 changed files with 5 additions and 1 deletions

View File

@@ -83,6 +83,7 @@ stdenv.mkDerivation rec {
sed -i 's,#!/usr/bin/env python,#!${python}/bin/python,' build/gyp_v8
sed -i 's,/bin/echo,${coreutils}/bin/echo,' build/standalone.gypi
sed -i '/CR_CLANG_REVISION/ d' build/standalone.gypi
sed -i 's/-Wno-format-pedantic//g' build/standalone.gypi
'';
configurePhase = ''
@@ -104,6 +105,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ which ];
buildInputs = [ readline python icu patchelf ];
NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
buildFlags = [
"LINK=g++"
"-C out"
@@ -135,7 +138,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "Google's open source JavaScript engine";
maintainers = with maintainers; [ cstrahan ];
maintainers = with maintainers; [ cstrahan proglodyte ];
platforms = platforms.linux;
license = licenses.bsd3;
};