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

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

Issue 1285953002: Switch devenv to use pkg packages (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@toolchain_install
Patch Set: Created 5 years, 4 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
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 export EXTRA_LIBS="${NACL_CLI_MAIN_LIB}" 5 export EXTRA_LIBS="${NACL_CLI_MAIN_LIB}"
6 6
7 # --with-build-sysroot is necessary to run "fixincl" 7 # --with-build-sysroot is necessary to run "fixincl"
8 # properly. Without this option, GCC's build system tries to create 8 # properly. Without this option, GCC's build system tries to create
9 # "include-fixed" based on the host's include directory, which is 9 # "include-fixed" based on the host's include directory, which is
10 # not compatible with nacl-gcc. 10 # not compatible with nacl-gcc.
11 EXTRA_CONFIGURE_ARGS="\ 11 EXTRA_CONFIGURE_ARGS="\
12 --enable-languages=c,c++ --disable-nls \ 12 --enable-languages=c,c++ --disable-nls \
13 --target=x86_64-nacl \ 13 --target=x86_64-nacl \
14 --disable-libstdcxx-pch --enable-threads=nacl" 14 --disable-libstdcxx-pch --enable-threads=nacl"
15 15
16 # Force gcc to think that makeinfo is old so it won't build documentation. 16 # Force gcc to think that makeinfo is old so it won't build documentation.
17 # Actually the issue is that its too new on most installs these days 17 # Actually the issue is that its too new on most installs these days
18 # (Ubunut/Trusty for example) and causes the build to break. 18 # (Ubunut/Trusty for example) and causes the build to break.
19 export gcc_cv_prog_makeinfo_modern=no 19 export gcc_cv_prog_makeinfo_modern=no
20 20
21 ConfigureStep() { 21 ConfigureStep() {
22 DefaultConfigureStep 22 DefaultConfigureStep
23 for cache_file in $(find . -name config.cache); do 23 for cache_file in $(find . -name config.cache); do
24 Remove $cache_file 24 Remove $cache_file
25 done 25 done
26 } 26 }
27
28 PublishStep() {
29 MakeDir ${PUBLISH_DIR}
30 for nexe in gcc/xgcc gcc/g++ gcc/cpp gcc/cc1 gcc/cc1plus gcc/collect2; do
31 local name=$(basename $nexe | sed 's/xgcc/gcc/')
32 cp ${nexe} ${PUBLISH_DIR}/${name}_${NACL_ARCH}${NACL_EXEEXT}
33
34 pushd ${PUBLISH_DIR}
35 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \
36 ${PUBLISH_DIR}/${name}_*${NACL_EXEEXT} \
37 -s . \
38 -o ${name}.nmf
39 popd
40 done
41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698