~alpine/devel

abuild: set samurai parallelism v1 PROPOSED

Drew DeVault: 1
 abuild: set samurai parallelism

 2 files changed, 4 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/devel/patches/3165/mbox | git am -3
Learn more about email & git

[PATCH] abuild: set samurai parallelism Export this patch

---
 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