GeezerVison is showing github.com — build,tools: update make-v8.sh for ppc64le · nodejs/node@331b26e
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: tools/make-v8.sh +11-2Lines changed: 11 additions & 2 deletions | 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 |
|