cjson: fix building with clang (#374236)
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user