Received: from mail.cmpwn.com (mail.cmpwn.com [45.56.77.53]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id E3035782B92 for <~alpine/devel@lists.alpinelinux.org>; Mon, 9 Dec 2019 16:32:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cmpwn.com; s=cmpwn; t=1575909154; bh=/SGm3dGcmTY6rZ7fU70BETc6XmJ69fc5EPhX8x0ErTY=; h=From:To:Cc:Subject:Date; b=Peg4VDAw1vpLLxHFZtjLTSGSDUgfn2ICrn82rVLCo6lJBwsbqxjs0asazrKLvouJh /K+kKYq0NcTYAT4Ezb/4TAEQRCIxzdvrjGrZmLPlVOKk3ANxpEkFGg/BR7SAeQqhlo iWVftWh4p2PuURsCffaO1PWf6glbDTy9RGrQC8m8= From: Drew DeVault To: ~alpine/devel@lists.alpinelinux.org Cc: Drew DeVault Subject: [PATCH] abuild: set samurai parallelism Date: Mon, 9 Dec 2019 11:33:18 -0500 Message-Id: <20191209163318.16171-1-sir@cmpwn.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit --- abuild.conf | 1 + functions.sh.in | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/abuild.conf b/abuild.conf index 6721e7f..a005afa 100644 --- a/abuild.conf +++ b/abuild.conf @@ -5,6 +5,7 @@ export LDFLAGS="-Wl,--as-needed" export JOBS=2 export MAKEFLAGS=-j$JOBS +export SAMUFLAGS=-j$JOBS # remove line below to disable colors USE_COLORS=1 diff --git a/functions.sh.in b/functions.sh.in index 6d5181a..531c9ba 100644 --- a/functions.sh.in +++ b/functions.sh.in @@ -55,7 +55,7 @@ hostspec_to_libc() { readconfig() { local _APORTSDIR _BUILDDIR _PKGDEST _SRCPKGDEST _REPODEST _SRCDEST local _CARCH _CHOST _CTARGET _CPPFLAGS _CFLAGS _CXXFLAGS _LDFLAGS - local _JOBS _MAKEFLAGS _PACKAGER _USE_COLORS _USE_CCACHE + local _JOBS _MAKEFLAGS _SAMUFLAGS _PACKAGER _USE_COLORS _USE_CCACHE local gitbase= [ -n "${APORTSDIR+x}" ] && _APORTSDIR=$APORTSDIR [ -n "${BUILDDIR+x}" ] && _BUILDDIR=$BUILDDIR @@ -72,6 +72,7 @@ readconfig() { [ -n "${LDFLAGS+x}" ] && _LDFLAGS=$LDFLAGS [ -n "${JOBS+x}" ] && _JOBS=$JOBS [ -n "${MAKEFLAGS+x}" ] && _MAKEFLAGS=$MAKEFLAGS + [ -n "${SAMUFLAGS+x}" ] && _SAMUFLAGS=$SAMUFLAGS [ -n "${PACKAGER+x}" ] && _PACKAGER=$PACKAGER [ -n "${USE_COLORS+x}" ] && _USE_COLORS="$USE_COLORS" [ -n "${USE_CCACHE+x}" ] && _USE_CCACHE="$USE_CCACHE" @@ -113,6 +114,7 @@ readconfig() { LDFLAGS=${_LDFLAGS-$LDFLAGS} JOBS=${_JOBS-$JOBS} MAKEFLAGS=${_MAKEFLAGS-$MAKEFLAGS} + SAMUFLAGS=${_SAMUFLAGS-$SAMUFLAGS} PACKAGER=${_PACKAGER-$PACKAGER} USE_COLORS=${_USE_COLORS-$USE_COLORS} USE_CCACHE=${_USE_CCACHE-$USE_CCACHE} -- 2.24.0