Skip to content

Commit

Permalink
cjson: fix building with clang (#374236)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Jan 20, 2025
2 parents 300081d + 3cef490 commit 9e1c4ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/by-name/cj/cjson/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ cmake ];

cmakeFlags = lib.optional (stdenv.cc.isClang && !stdenv.hostPlatform.isDarwin) (
lib.cmakeBool "ENABLE_CUSTOM_COMPILER_FLAGS" false
);

# cJSON actually uses C99 standard, not C89
# https://github.com/DaveGamble/cJSON/issues/275
postPatch = ''
Expand Down

0 comments on commit 9e1c4ff

Please sign in to comment.