Skip to content

Commit a4a4c76

Browse files
committed
use nproc in package.sh
1 parent 3baba68 commit a4a4c76

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

package.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ try() { "$@" || die "${RED}Failed $*"; }
1919
displayHelp () {
2020
printf "\n" &&
2121
printf "${bold}${GRE}Script to build Thorium .deb and .rpm packages on Linux.${c0}\n" &&
22-
printf "${underline}${YEL}Usage: ${c0}package.sh # (where # is number of jobs)\n" &&
2322
printf "\n"
2423
}
2524
case $1 in
@@ -45,7 +44,7 @@ export NINJA_STATUS="[%r processes, %f/%t @ %o/s | %e sec. ] " &&
4544

4645
cd ${CR_SRC_DIR} &&
4746

48-
autoninja -C out/thorium "chrome/installer/linux:stable_deb" "chrome/installer/linux:stable_rpm" -j$@ &&
47+
autoninja -C out/thorium "chrome/installer/linux:stable_deb" "chrome/installer/linux:stable_rpm" -j $(nproc) &&
4948

5049
printf "${GRE}Done! ${YEL}Installers at \'//out/thorium/thorium*.deb\' and \'//out/thorium/thorium*.rpm\'\n" &&
5150
tput sgr0

setup.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ patchFFMPEG () {
7979
cd ${CR_SRC_DIR} &&
8080
git apply --reject ./Fix-policy-templates.patch
8181
}
82-
8382
[ -f ${CR_SRC_DIR}/third_party/ffmpeg/add-hevc-ffmpeg-decoder-parser.patch ] || patchFFMPEG;
8483

8584
cd ~/thorium &&

0 commit comments

Comments
 (0)