dev-cpp/eigen: drop openmp from test backends, add openmp check

Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44994
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Paul Zander
2026-05-04 13:59:45 +02:00
committed by Sam James
parent 8fe15a8644
commit 51525dbb22
2 changed files with 22 additions and 4 deletions

View File

@@ -84,7 +84,6 @@ IUSE_TEST_BACKENDS=(
"fftw"
"klu"
"opengl"
"openmp"
"pastix"
"sparsehash"
"spqr"
@@ -92,7 +91,7 @@ IUSE_TEST_BACKENDS=(
"umfpack"
)
IUSE="${CPU_FEATURES_MAP[*]%:*} cuda cuda-clang hip debug doc lapack mathjax test ${IUSE_TEST_BACKENDS[*]}" #zvector
IUSE="${CPU_FEATURES_MAP[*]%:*} cuda cuda-clang hip debug doc lapack mathjax openmp test ${IUSE_TEST_BACKENDS[*]}" #zvector
REQUIRED_USE="
|| ( ${IUSE_TEST_BACKENDS[*]} )
@@ -200,7 +199,17 @@ cuda_set_CUDAHOSTCXX() {
export CUDAHOSTCXX
}
pkg_pretend() {
if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
tc-check-openmp
fi
}
pkg_setup() {
if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
tc-check-openmp
fi
if use test && use cuda && use cuda-clang; then
llvm-r2_pkg_setup
fi

View File

@@ -84,7 +84,6 @@ IUSE_TEST_BACKENDS=(
"fftw"
"klu"
"opengl"
"openmp"
"pastix"
"sparsehash"
"spqr"
@@ -92,7 +91,7 @@ IUSE_TEST_BACKENDS=(
"umfpack"
)
IUSE="benchmark ${CPU_FEATURES_MAP[*]%:*} cuda cuda-clang hip debug doc lapack mathjax test ${IUSE_TEST_BACKENDS[*]}" #zvector
IUSE="benchmark ${CPU_FEATURES_MAP[*]%:*} cuda cuda-clang hip debug doc lapack mathjax openmp test ${IUSE_TEST_BACKENDS[*]}" #zvector
REQUIRED_USE="
|| ( ${IUSE_TEST_BACKENDS[*]} )
@@ -197,7 +196,17 @@ cuda_set_CUDAHOSTCXX() {
export CUDAHOSTCXX
}
pkg_pretend() {
if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
tc-check-openmp
fi
}
pkg_setup() {
if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
tc-check-openmp
fi
if use test && use cuda && use cuda-clang; then
llvm-r2_pkg_setup
fi