File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 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
66cd deps/v8
77tools/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
2433else
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
You can’t perform that action at this time.
0 commit comments