1 |
in order to run up to makeopts_jobs number of jobs |
2 |
in dune_src_compile and dune_src_test |
3 |
|
4 |
Signed-off-by: Maciej Barć <xgqt@g.o> |
5 |
--- |
6 |
eclass/dune.eclass | 8 +++++--- |
7 |
1 file changed, 5 insertions(+), 3 deletions(-) |
8 |
|
9 |
diff --git a/eclass/dune.eclass b/eclass/dune.eclass |
10 |
index 9b5c469dcad..522dc2a8b52 100644 |
11 |
--- a/eclass/dune.eclass |
12 |
+++ b/eclass/dune.eclass |
13 |
@@ -1,4 +1,4 @@ |
14 |
-# Copyright 1999-2021 Gentoo Authors |
15 |
+# Copyright 1999-2022 Gentoo Authors |
16 |
# Distributed under the terms of the GNU General Public License v2 |
17 |
|
18 |
# @ECLASS: dune.eclass |
19 |
@@ -26,6 +26,8 @@ case ${EAPI:-0} in |
20 |
*) die "${ECLASS}: EAPI ${EAPI} not supported" ;; |
21 |
esac |
22 |
|
23 |
+inherit multiprocessing |
24 |
+ |
25 |
# Do not complain about CFLAGS etc since ml projects do not use them. |
26 |
QA_FLAGS_IGNORED='.*' |
27 |
|
28 |
@@ -44,13 +46,13 @@ esac |
29 |
|
30 |
dune_src_compile() { |
31 |
ebegin "Building" |
32 |
- dune build @install --display short --profile release |
33 |
+ dune build @install -j $(makeopts_jobs) --profile release |
34 |
eend $? || die |
35 |
} |
36 |
|
37 |
dune_src_test() { |
38 |
ebegin "Testing" |
39 |
- dune runtest --display short --profile release |
40 |
+ dune runtest -j $(makeopts_jobs) --profile release |
41 |
eend $? || die |
42 |
} |
43 |
|
44 |
-- |
45 |
2.34.1 |