Browse Source

v8 update arches

Signed-off-by: webbuilder_pel7ppc64lebuilder0 <webbuilder@powerel.org>
master
webbuilder_pel7ppc64lebuilder0 4 years ago
parent
commit
d05cea19f8
  1. 15
      SPECS/v8.spec

15
SPECS/v8.spec

@ -84,7 +84,7 @@ Patch14: v8-6.7.17-fix-gcc-unwind-header.patch
# error: '(9.223372036854775807e+18 / 1.0e+9)' is not a constant expression # error: '(9.223372036854775807e+18 / 1.0e+9)' is not a constant expression
# aarch64 doesn't work either. # aarch64 doesn't work either.
# code does not compile on s390 # code does not compile on s390
ExclusiveArch: %{ix86} x86_64 %{arm} ppc mipsel mips64el ExclusiveArch: %{ix86} x86_64 %{arm} ppc ppc64 ppc64le mipsel mips64el
BuildRequires: readline-devel, libicu-devel, ninja-build BuildRequires: readline-devel, libicu-devel, ninja-build
BuildRequires: python2-devel, glib2-devel, libatomic BuildRequires: python2-devel, glib2-devel, libatomic
# BuildRequires: clang, llvm # BuildRequires: clang, llvm
@ -128,9 +128,9 @@ Python libraries from v8.
%ifarch i686 armv7hl %ifarch i686 armv7hl
%patch9 -p1 -b .memexhaust %patch9 -p1 -b .memexhaust
%endif %endif
%if 0%{?fedora} <= 25 #%if 0%{?fedora} <= 25
%patch10 -p1 -b .oldflags #%patch10 -p1 -b .oldflags
%endif #%endif


cp -a %{SOURCE2} third_party/icu/BUILD.gn cp -a %{SOURCE2} third_party/icu/BUILD.gn


@ -215,6 +215,9 @@ sed -i 's|/usr/bin/env python|/usr/bin/env python2|g' ../depot_tools/gn.py
%ifarch ppc64 %ifarch ppc64
%global v8arch ppc64 %global v8arch ppc64
%endif %endif
%ifarch ppc64le
%global v8arch ppc64
%endif
%ifarch s390 %ifarch s390
%global v8arch s390 %global v8arch s390
%endif %endif
@ -225,7 +228,7 @@ sed -i 's|/usr/bin/env python|/usr/bin/env python2|g' ../depot_tools/gn.py
# DO THE HARLEM SHAKE # DO THE HARLEM SHAKE
# err... I mean, build gn from source. # err... I mean, build gn from source.
pushd tools/gn pushd tools/gn
./bootstrap/bootstrap.py -s ./bootstrap/bootstrap.py -v
popd popd
rm -rf buildtools/linux64/gn* rm -rf buildtools/linux64/gn*
# the tooling thinks all linux is "linux64" # the tooling thinks all linux is "linux64"
@ -233,7 +236,7 @@ cp -a out/Release/gn buildtools/linux64/gn


# Replace ninja in depot_tools # Replace ninja in depot_tools
rm -rf ../depot_tools/ninja rm -rf ../depot_tools/ninja
ln -s /usr/bin/ninja ../depot_tools/ninja ln -s /usr/bin/ninja-build ../depot_tools/ninja


V8_GN_DEFINES="" V8_GN_DEFINES=""
V8_GN_DEFINES+=' use_sysroot=false use_gold=false enable_nacl=false linux_use_bundled_binutils=false is_component_build=true clang_use_chrome_plugins=false' V8_GN_DEFINES+=' use_sysroot=false use_gold=false enable_nacl=false linux_use_bundled_binutils=false is_component_build=true clang_use_chrome_plugins=false'

Loading…
Cancel
Save