Merge pull request #330670 from mattpolzin/netcdf-fix-darwin

netcdf: fix darwin and more broadly clang builds
This commit is contained in:
2024-08-08 08:54:46 +02:00
committed by GitHub
@@ -52,6 +52,11 @@ in stdenv.mkDerivation rec {
inherit mpiSupport mpi;
};
env.NIX_CFLAGS_COMPILE =
# Suppress incompatible function pointer errors when building with newer versions of clang 16.
# tracked upstream here: https://github.com/Unidata/netcdf-c/issues/2715
lib.optionalString stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
configureFlags = [
"--enable-netcdf-4"
"--enable-dap"