Unverified Commit f2b10b39 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #273767 from raphaelr/fix/b2sum-clang

b2sum: Fix build on darwin
parents 0a3f898d 98201e24
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -23,6 +23,11 @@ stdenv.mkDerivation (finalAttrs: {
  buildInputs = [ openmp ];

  buildFlags = [ (lib.optional (openmp == null) "NO_OPENMP=1") ];

  # clang builds require at least C99 or the build fails with:
  # error: unknown type name 'inline'
  env.NIX_CFLAGS_COMPILE = "-std=c99";

  installFlags = [ "PREFIX=$(out)" ];

  meta = with lib; {