pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

mk/cargo-binary.mk: Apply feedback by medfly, use --jobs in cargo invocations.



Module Name:	pkgsrc-wip
Committed By:	ng0 <ng0%NetBSD.org@localhost>
Pushed By:	ng0
Date:		Wed Aug 21 17:04:50 2019 +0000
Changeset:	e1794e721d3bbd799fecea9a31eb737f3b064e6b

Modified Files:
	mk/cargo-binary.mk

Log Message:
mk/cargo-binary.mk: Apply feedback by medfly, use --jobs in cargo invocations.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e1794e721d3bbd799fecea9a31eb737f3b064e6b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 mk/cargo-binary.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diffs:
diff --git a/mk/cargo-binary.mk b/mk/cargo-binary.mk
index 17ce80b002..2d9da06607 100644
--- a/mk/cargo-binary.mk
+++ b/mk/cargo-binary.mk
@@ -20,13 +20,13 @@ do-build: do-build-cargo-binary
 .PHONY: do-build-cargo-binary
 
 do-build-cargo-binary:
-	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --verbose --frozen --release
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release --jobs ${MAKE_JOBS:U1}
 
 do-install: install-cargo-binary
 .PHONY: install-cargo-binary
 
 install-cargo-binary:
-	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo install --path . --root ${DESTDIR}${LOCALBASE}
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo install --jobs ${MAKE_JOBS:U1} --path . --root ${DESTDIR}${LOCALBASE}
 	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${RM} ${DESTDIR}${LOCALBASE}/.crates.toml
 
 .include "../../lang/rust/cargo.mk"


Home | Main Index | Thread Index | Old Index