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

Side by Side Diff: ports/python-host/build.sh

Issue 710193003: Reduce the number of times we build a host copy of python. (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 # Copyright (c) 2013 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2013 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 # Use the same patch here as for the destination tree. This allows us to use 5 # Use the same patch here as for the destination tree. This allows us to use
6 # the same tree for both, although some care should be taken to note that our 6 # the same tree for both, although some care should be taken to note that our
7 # DYNLOAD will be different between the two builds. 7 # DYNLOAD will be different between the two builds.
8 BUILD_DIR=${WORK_DIR}/build-nacl-host 8 BUILD_DIR=${WORK_DIR}/build_host
9 9
10 ConfigureStep() { 10 ConfigureStep() {
11 MakeDir ${BUILD_DIR}
12 ChangeDir ${BUILD_DIR}
13 # Reset CFLAGS and LDFLAGS when configuring the host 11 # Reset CFLAGS and LDFLAGS when configuring the host
14 # version of python since they hold values designed for 12 # version of python since they hold values designed for
15 # building for NaCl. Note that we are forcing 32 bits here so 13 # building for NaCl. Note that we are forcing 32 bits here so
16 # our generated modules use Py_ssize_t of the correct size. 14 # our generated modules use Py_ssize_t of the correct size.
17 export CC="gcc -m32" 15 export CC="gcc -m32"
18 export CXX="g++ -m32" 16 export CXX="g++ -m32"
19 export LD="gcc -m32" 17 export LD="gcc -m32"
20 LogExecute \ 18 LogExecute ${SRC_DIR}/configure --prefix=${NACL_HOST_PYROOT}
21 ${SRC_DIR}/configure --prefix=${NACL_HOST_PYROOT}
22 } 19 }
23 20
24 InstallStep() { 21 InstallStep() {
25 make install 22 make install
26 } 23 }
OLDNEW
« README.rst ('K') | « ports/gforth/build.sh ('k') | ports/python-host/nacl.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698