File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -6,21 +6,30 @@ V8_BUILD_OPTIONS=$2
6
6
cd deps/v8
7
7
tools/node/fetch_deps.py .
8
8
9
- if [ " ` arch` " == " s390x " ]
10
- then
9
+ ARCH= " ` arch` "
10
+ if [[ " $ARCH " == " s390x " ]] || [[ " $ARCH " == " ppc64le " ]] ; then
11
11
# set paths manually for now to use locally installed gn
12
12
export BUILD_TOOLS=/home/iojs/build-tools
13
13
export LD_LIBRARY_PATH=$BUILD_TOOLS :$LD_LIBRARY_PATH
14
14
export PATH=$BUILD_TOOLS :$PATH
15
15
CXX_PATH=` which $CXX | grep g++`
16
16
rm -f " $BUILD_TOOLS /g++"
17
17
rm -f " $BUILD_TOOLS /gcc"
18
+ fi
19
+ if [[ " $ARCH " == " s390x" ]]; then
18
20
ln -s $CXX_PATH " $BUILD_TOOLS /g++"
19
21
ln -s $CXX_PATH " $BUILD_TOOLS /gcc"
20
22
g++ --version
21
23
export PKG_CONFIG_PATH=$BUILD_TOOLS /pkg-config
22
24
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"'
23
25
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
24
33
else
25
34
PATH=~ /_depot_tools:$PATH tools/dev/v8gen.py $BUILD_ARCH_TYPE --no-goma $V8_BUILD_OPTIONS
26
35
PATH=~ /_depot_tools:$PATH ninja -C out.gn/$BUILD_ARCH_TYPE / d8 cctest inspector-test
You can’t perform that action at this time.
0 commit comments