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

b2sum: Fix build on darwin
This commit is contained in:
Weijia Wang 2023-12-17 20:15:04 +01:00 committed by GitHub
commit f2b10b396d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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; {