mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
netcdf-mpi: fix compiler: use mpicc
Use mpicc to build when mpi support is required (instead of regular gcc)
(cherry picked from commit 396ffac28f)
This commit is contained in:
@@ -27,7 +27,7 @@ in stdenv.mkDerivation rec {
|
||||
"--enable-dap"
|
||||
"--enable-shared"
|
||||
]
|
||||
++ (stdenv.lib.optionals mpiSupport [ "--enable-parallel-tests" ]);
|
||||
++ (stdenv.lib.optionals mpiSupport [ "--enable-parallel-tests" "CC=${mpi}/bin/mpicc" ]);
|
||||
|
||||
meta = {
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
|
||||
Reference in New Issue
Block a user