netcdf: fix darwin and more broadly clang builds
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user