mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
eclass/dune.eclass: inherit multiprocessing
in order to run up to makeopts_jobs number of jobs in dune_src_compile and dune_src_test Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
# @ECLASS: dune.eclass
|
# @ECLASS: dune.eclass
|
||||||
@@ -26,6 +26,8 @@ case ${EAPI:-0} in
|
|||||||
*) die "${ECLASS}: EAPI ${EAPI} not supported" ;;
|
*) die "${ECLASS}: EAPI ${EAPI} not supported" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
inherit multiprocessing
|
||||||
|
|
||||||
# Do not complain about CFLAGS etc since ml projects do not use them.
|
# Do not complain about CFLAGS etc since ml projects do not use them.
|
||||||
QA_FLAGS_IGNORED='.*'
|
QA_FLAGS_IGNORED='.*'
|
||||||
|
|
||||||
@@ -44,13 +46,13 @@ esac
|
|||||||
|
|
||||||
dune_src_compile() {
|
dune_src_compile() {
|
||||||
ebegin "Building"
|
ebegin "Building"
|
||||||
dune build @install --display short --profile release
|
dune build @install -j $(makeopts_jobs) --profile release
|
||||||
eend $? || die
|
eend $? || die
|
||||||
}
|
}
|
||||||
|
|
||||||
dune_src_test() {
|
dune_src_test() {
|
||||||
ebegin "Testing"
|
ebegin "Testing"
|
||||||
dune runtest --display short --profile release
|
dune runtest -j $(makeopts_jobs) --profile release
|
||||||
eend $? || die
|
eend $? || die
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user