Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centos7 ppc64 le v8 test support #28458

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions tools/getarch.py
@@ -0,0 +1,10 @@
from __future__ import print_function
from utils import GuessArchitecture
arch = GuessArchitecture()

# assume 64 bit unless set specifically
print(GuessArchitecture() \
.replace('ia32', 'x64') \
.replace('ppc', 'ppc64') \
.replace('arm', 'arm64') \
.replace('s390', 's390x'))
4 changes: 4 additions & 0 deletions tools/getendian.py
@@ -0,0 +1,4 @@
from __future__ import print_function
import sys
# "little" or "big"
print(sys.byteorder)
3 changes: 3 additions & 0 deletions tools/getmachine.py
@@ -0,0 +1,3 @@
from __future__ import print_function
import platform
print(platform.machine())
1 change: 1 addition & 0 deletions tools/getnodeversion.py
@@ -1,3 +1,4 @@
from __future__ import print_function
import os
import re

Expand Down
10 changes: 7 additions & 3 deletions tools/make-v8.sh
Expand Up @@ -12,7 +12,9 @@ if [[ "$ARCH" == "s390x" ]] || [[ "$ARCH" == "ppc64le" ]]; then
export BUILD_TOOLS=/home/iojs/build-tools
export LD_LIBRARY_PATH=$BUILD_TOOLS:$LD_LIBRARY_PATH
export PATH=$BUILD_TOOLS:$PATH
CXX_PATH=`which $CXX |grep g++`
if [[ X"$CXX" != X ]]; then
CXX_PATH=`which $CXX |grep g++`
fi
rm -f "$BUILD_TOOLS/g++"
rm -f "$BUILD_TOOLS/gcc"
fi
Expand All @@ -24,8 +26,10 @@ if [[ "$ARCH" == "s390x" ]]; then
gn gen -v out.gn/$BUILD_ARCH_TYPE --args='is_component_build=false is_debug=false use_goma=false goma_dir="None" use_custom_libcxx=false v8_target_cpu="s390x" target_cpu="s390x"'
ninja -v -C out.gn/$BUILD_ARCH_TYPE d8 cctest inspector-test
elif [[ "$ARCH" == "ppc64le" ]]; then
ln -s /usr/bin/$CXX "$BUILD_TOOLS/g++"
ln -s /usr/bin/$CC "$BUILD_TOOLS/gcc"
if [[ X"$CXX" != X ]]; then
ln -s /usr/bin/$CXX "$BUILD_TOOLS/g++"
ln -s /usr/bin/$CC "$BUILD_TOOLS/gcc"
fi
g++ --version
export PKG_CONFIG_PATH=$BUILD_TOOLS/pkg-config-files
gn gen out.gn/$BUILD_ARCH_TYPE --args='is_component_build=false is_debug=false use_goma=false goma_dir="None" use_custom_libcxx=false v8_target_cpu="ppc64" target_cpu="ppc64"'
Expand Down