mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
dynamic cpu count detection and parallel make configuration
This commit is contained in:
parent
8eea20ba4b
commit
e4d6730fca
@ -603,7 +603,12 @@ build_lyx() {
|
||||
${QtInstallDir:+"--with-qt4-dir=${QtInstallDir}"} \
|
||||
${LyXConfigureOptions}\
|
||||
--enable-build-type=rel && \
|
||||
make -j2 && make install${strip}
|
||||
NCPU=$(sysctl -n hw.ncpu)
|
||||
NCPU=$((NCPU / 2))
|
||||
if [ $NCPU -gt 1 ]; then
|
||||
NUMJOBS=-j${NCPU}
|
||||
fi
|
||||
make ${NUMJOBS} && make install${strip}
|
||||
for file in ${LYX_FILE_LIST} ; do
|
||||
if [ -f "${LYX_BUNDLE_PATH}/${file}" ]; then
|
||||
mv "${LYX_BUNDLE_PATH}/${file}"\
|
||||
|
Loading…
Reference in New Issue
Block a user