Unverified Commit 81f33f4f authored by Florian's avatar Florian Committed by GitHub
Browse files

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

netcdf: fix darwin and more broadly clang builds
parents fd28bce1 fa0b3b93
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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"