Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset b3536a0 in mainline


Ignore:
Timestamp:
2017-12-06T05:50:45Z (4 years ago)
Author:
Kai Liu <nebulabox@…>
Children:
b500939e
Parents:
40fd6f0
git-author:
Kai Liu <nebulabox@…> (2017-12-06 05:41:21)
git-committer:
Kai Liu <nebulabox@…> (2017-12-06 05:50:45)
Message:

Run make with -j to improve the build speed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/toolchain.sh

    r40fd6f0 rb3536a0  
    7272GDB="gdb-${GDB_VERSION}.tar.gz"
    7373ISL="isl-${ISL_VERSION}.tar.bz2"
     74CPUCOUNT="`python -c 'import multiprocessing as mp; print(mp.cpu_count())' `"
    7475
    7576REAL_INSTALL=true
     
    500501       
    501502        change_title "binutils: make (${PLATFORM})"
    502         make all
     503        make -j$CPUCOUNT all
    503504        check_error $? "Error compiling binutils."
    504505       
     
    523524       
    524525        change_title "GCC: make (${PLATFORM})"
    525         PATH="${PATH}:${PREFIX}/bin:${INSTALL_DIR}/${PREFIX}/bin" make all-gcc
     526        PATH="${PATH}:${PREFIX}/bin:${INSTALL_DIR}/${PREFIX}/bin" make -j$CPUCOUNT all-gcc
    526527        check_error $? "Error compiling GCC."
    527528       
     
    545546               
    546547                change_title "GDB: make (${PLATFORM})"
    547                 PATH="${PATH}:${PREFIX}/bin:${INSTALL_DIR}/${PREFIX}/bin" make all
     548                PATH="${PATH}:${PREFIX}/bin:${INSTALL_DIR}/${PREFIX}/bin" make -j$CPUCOUNT all
    548549                check_error $? "Error compiling GDB."
    549550               
Note: See TracChangeset for help on using the changeset viewer.