| OLD | NEW |
| 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2011 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 BUILD_DIR=${SRC_DIR} | 5 BUILD_DIR=${SRC_DIR} |
| 6 | 6 NACLPORTS_CPPFLAGS+="${NACL_EXCEPTIONS_FLAG}" |
| 7 EnableGlibcCompat | 7 EnableGlibcCompat |
| 8 | 8 |
| 9 if [ "${TOOLCHAIN}" = "pnacl" -o "${TOOLCHAIN}" = "clang-newlib" ]; then | 9 if [ "${TOOLCHAIN}" = "pnacl" -o "${TOOLCHAIN}" = "clang-newlib" ]; then |
| 10 # TODO(sbc): Should probably use clang here | 10 # TODO(sbc): Should probably use clang here |
| 11 COMPILER=gcc | 11 COMPILER=gcc |
| 12 else | 12 else |
| 13 COMPILER=gcc | 13 COMPILER=gcc |
| 14 fi | 14 fi |
| 15 | 15 |
| 16 if [ "${TOOLCHAIN}" = "pnacl" -o "${TOOLCHAIN}" = "clang-newlib" ]; then | 16 if [ "${TOOLCHAIN}" = "pnacl" -o "${TOOLCHAIN}" = "clang-newlib" ]; then |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 LogExecute ./bootstrap.sh --prefix=${NACL_PREFIX} | 63 LogExecute ./bootstrap.sh --prefix=${NACL_PREFIX} |
| 64 } | 64 } |
| 65 | 65 |
| 66 BuildStep() { | 66 BuildStep() { |
| 67 LogExecute ./b2 stage -j ${OS_JOBS} ${BUILD_ARGS} | 67 LogExecute ./b2 stage -j ${OS_JOBS} ${BUILD_ARGS} |
| 68 } | 68 } |
| 69 | 69 |
| 70 InstallStep() { | 70 InstallStep() { |
| 71 LogExecute ./b2 install -d0 --prefix=${DESTDIR}/${PREFIX} ${BUILD_ARGS} | 71 LogExecute ./b2 install -d0 --prefix=${DESTDIR}/${PREFIX} ${BUILD_ARGS} |
| 72 } | 72 } |
| OLD | NEW |