Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dc5647f

Browse filesBrowse files
refackcodebytere
authored andcommitted
build,tools: update make-v8.sh for ppc64le
PR-URL: #24293 Fixes: nodejs/build#1536 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
1 parent 987df27 commit dc5647f
Copy full SHA for dc5647f

File tree

Expand file treeCollapse file tree

1 file changed

+11
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-2
lines changed
Open diff view settings
Collapse file

‎tools/make-v8.sh‎

Copy file name to clipboardExpand all lines: tools/make-v8.sh
+11-2Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,30 @@ V8_BUILD_OPTIONS=$2
66
cd deps/v8
77
tools/node/fetch_deps.py .
88

9-
if [ "`arch`" == "s390x" ]
10-
then
9+
ARCH="`arch`"
10+
if [[ "$ARCH" == "s390x" ]] || [[ "$ARCH" == "ppc64le" ]]; then
1111
# set paths manually for now to use locally installed gn
1212
export BUILD_TOOLS=/home/iojs/build-tools
1313
export LD_LIBRARY_PATH=$BUILD_TOOLS:$LD_LIBRARY_PATH
1414
export PATH=$BUILD_TOOLS:$PATH
1515
CXX_PATH=`which $CXX |grep g++`
1616
rm -f "$BUILD_TOOLS/g++"
1717
rm -f "$BUILD_TOOLS/gcc"
18+
fi
19+
if [[ "$ARCH" == "s390x" ]]; then
1820
ln -s $CXX_PATH "$BUILD_TOOLS/g++"
1921
ln -s $CXX_PATH "$BUILD_TOOLS/gcc"
2022
g++ --version
2123
export PKG_CONFIG_PATH=$BUILD_TOOLS/pkg-config
2224
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"'
2325
ninja -v -C out.gn/$BUILD_ARCH_TYPE d8 cctest inspector-test
26+
elif [[ "$ARCH" == "ppc64le" ]]; then
27+
ln -s /usr/bin/$CXX "$BUILD_TOOLS/g++"
28+
ln -s /usr/bin/$CC "$BUILD_TOOLS/gcc"
29+
g++ --version
30+
export PKG_CONFIG_PATH=$BUILD_TOOLS/pkg-config-files
31+
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"'
32+
ninja -C out.gn/$BUILD_ARCH_TYPE d8 cctest inspector-test
2433
else
2534
PATH=~/_depot_tools:$PATH tools/dev/v8gen.py $BUILD_ARCH_TYPE --no-goma $V8_BUILD_OPTIONS
2635
PATH=~/_depot_tools:$PATH ninja -C out.gn/$BUILD_ARCH_TYPE/ d8 cctest inspector-test

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.