Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Side by Side Diff: ports/gforth/build.sh

Issue 1594533003: Attempt to debug intermittent gforth build failures. (Closed) Base URL: https://chromium.googlesource.com/webports.git@cleanup_pnacl_build
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2014 The Native Client Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # NOTE: This build doesn't work in parallel. 5 # NOTE: This build doesn't work in parallel.
6 OS_JOBS=1 6 OS_JOBS=1
7 7
8 # This build relies on certain host binaries. 8 # This build relies on certain host binaries.
9 HOST_BUILD_DIR=${WORK_DIR}/build_host 9 HOST_BUILD_DIR=${WORK_DIR}/build_host
10 HOST_INSTALL_DIR=${WORK_DIR}/install_host 10 HOST_INSTALL_DIR=${WORK_DIR}/install_host
11 11
12 EXECUTABLE="gforth-ditc${NACL_EXEEXT}" 12 EXECUTABLE="gforth-ditc${NACL_EXEEXT}"
13 EXECUTABLES="${EXECUTABLE}" 13 EXECUTABLES="${EXECUTABLE}"
14 MAKE_TARGETS="${EXECUTABLE}" 14 MAKE_TARGETS="${EXECUTABLE}"
15 15
16 EnableCliMain 16 EnableCliMain
17 17
18 BuildHostGforth() { 18 BuildHostGforth() {
19 if [[ -f "${HOST_INSTALL_DIR}/bin/gforth-ditc" ]]; then 19 if [[ -f "${HOST_INSTALL_DIR}/bin/gforth" ]]; then
20 return 20 return
21 fi 21 fi
22 Banner "Building ${PACKAGE_NAME} for host" 22 Banner "Building ${PACKAGE_NAME} for host"
23 MakeDir ${HOST_BUILD_DIR} 23 MakeDir ${HOST_BUILD_DIR}
24 ChangeDir ${HOST_BUILD_DIR} 24 ChangeDir ${HOST_BUILD_DIR}
25 CC="gcc -m32" LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR} 25 CC="gcc -m32" LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR}
26 LogExecute make -j${OS_JOBS} 26 LogExecute make -j${OS_JOBS}
27 LogExecute make install 27 LogExecute make install
28 } 28 }
29 29
30 ConfigureStep() { 30 ConfigureStep() {
31 ChangeDir ${SRC_DIR} 31 ChangeDir ${SRC_DIR}
32 ./autogen.sh 32 ./autogen.sh
33 BuildHostGforth 33 BuildHostGforth
34 Banner "Building ${PACKAGE_NAME} for NaCl" 34 Banner "Building ${PACKAGE_NAME} for NaCl"
35 export PATH="${HOST_INSTALL_DIR}/bin:${PATH}" 35 export PATH="${HOST_INSTALL_DIR}/bin:${PATH}"
36 host_gforth=$(which gforth)
37 if [[ -z $host_gforth ]]; then
38 echo "Failed to find host version of gforth"
39 exit 1
40 else
41 echo "Host gforth found at: $(which gforth)"
42 fi
36 export skipcode=no 43 export skipcode=no
37 EnableGlibcCompat 44 EnableGlibcCompat
38 ChangeDir ${BUILD_DIR} 45 ChangeDir ${BUILD_DIR}
39 EXTRA_CONFIGURE_ARGS="--without-check" 46 EXTRA_CONFIGURE_ARGS="--without-check"
40 DefaultConfigureStep 47 DefaultConfigureStep
41 } 48 }
42 49
43 InstallStep() { 50 InstallStep() {
44 return 51 return
45 } 52 }
(...skipping 25 matching lines...) Expand all
71 LogExecute python ${TOOLS_DIR}/create_term.py gforth.nmf 78 LogExecute python ${TOOLS_DIR}/create_term.py gforth.nmf
72 79
73 InstallNaClTerm ${PUBLISH_DIR} 80 InstallNaClTerm ${PUBLISH_DIR}
74 81
75 cp ${START_DIR}/gforth.js ${PUBLISH_DIR}/ 82 cp ${START_DIR}/gforth.js ${PUBLISH_DIR}/
76 83
77 ChangeDir ${PUBLISH_DIR} 84 ChangeDir ${PUBLISH_DIR}
78 Remove gforth.zip 85 Remove gforth.zip
79 LogExecute zip -r gforth.zip . 86 LogExecute zip -r gforth.zip .
80 } 87 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698