Otherwise we would run as many OpenMP threads as there are CPU cores and
ignore MAKEOPTS. Since we're running tests in parallel *and* the tests
spawn multiple threads, we will still exceed $(makeopts_jobs) threads
total, but I don't think that can be helped.
Closes: https://bugs.gentoo.org/688926
Signed-off-by: Matt Turner <mattst88@gentoo.org>
GIT_ECLASS="git-r3"
fi
-inherit ${GIT_ECLASS} meson multilib-minimal toolchain-funcs
+inherit ${GIT_ECLASS} meson multilib-minimal multiprocessing toolchain-funcs
DESCRIPTION="Low-level pixel manipulation routines"
HOMEPAGE="http://www.pixman.org/ https://gitlab.freedesktop.org/pixman/pixman/"
}
multilib_src_test() {
+ export OMP_NUM_THREADS=$(makeopts_jobs)
meson test -v -C "${BUILD_DIR}" -t 100
}
GIT_ECLASS="git-r3"
fi
-inherit ${GIT_ECLASS} meson multilib-minimal toolchain-funcs
+inherit ${GIT_ECLASS} meson multilib-minimal multiprocessing toolchain-funcs
DESCRIPTION="Low-level pixel manipulation routines"
HOMEPAGE="http://www.pixman.org/ https://gitlab.freedesktop.org/pixman/pixman/"
}
multilib_src_test() {
+ export OMP_NUM_THREADS=$(makeopts_jobs)
meson test -v -C "${BUILD_DIR}" -t 100
}