Archived
1
0
forked from rarias/bscpkgs

Split openmp versions in separate derivations

The openmp derivation provides both libomp and libompv. To avoid
accidentally linking with the wrong library and to avoid the nosv
dependency on libomp, this patch separates each version in a different
derivation.

Also, it adapts the clang wrappers and stdenvs to provide an stdenv per
openmp library where each openmp will be used by default when the
compiler flag "-fopenmp" is used. This eases linking ompv with nixpkgs
libraries, such as blis, that expect openmp to be provided with stdenv.

Reviewed-by: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
Tested-by: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
This commit is contained in:
2023-12-05 11:58:04 +01:00
committed by Rodrigo Arias Mallo
parent 3f2b9a766b
commit c4d5135fde
6 changed files with 39 additions and 16 deletions

View File

@@ -84,6 +84,6 @@ in
];
passthru = {
nosv = nosv;
inherit nosv;
};
}