mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:27:45 +00:00
Ports: Make the number of compile jobs configurable
This commit is contained in:
parent
7eb8d13f84
commit
d8ce2802e0
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
SCRIPT="$(dirname "${0}")"
|
SCRIPT="$(dirname "${0}")"
|
||||||
|
export MAKEJOBS="${MAKEJOBS:-$(nproc)}"
|
||||||
|
|
||||||
maybe_source() {
|
maybe_source() {
|
||||||
if [ -f "$1" ]; then
|
if [ -f "$1" ]; then
|
||||||
|
@ -46,7 +47,7 @@ host_env() {
|
||||||
|
|
||||||
packagesdb="${DESTDIR}/usr/Ports/packages.db"
|
packagesdb="${DESTDIR}/usr/Ports/packages.db"
|
||||||
|
|
||||||
makeopts=("-j$(nproc)")
|
makeopts=("-j${MAKEJOBS}")
|
||||||
installopts=()
|
installopts=()
|
||||||
configscript=configure
|
configscript=configure
|
||||||
configopts=()
|
configopts=()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue