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