simdjson: fix build on powerpc64

This commit is contained in:
Alyssa Ross 2022-12-28 11:57:07 +00:00
parent 3f3eb370c1
commit ca71219e61
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -15,7 +15,13 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DSIMDJSON_DEVELOPER_MODE=OFF"
] ++ lib.optional stdenv.hostPlatform.isStatic "-DBUILD_SHARED_LIBS=OFF";
] ++ lib.optionals stdenv.hostPlatform.isStatic [
"-DBUILD_SHARED_LIBS=OFF"
] ++ lib.optionals (with stdenv.hostPlatform; isPower && isBigEndian) [
# Assume required CPU features are available, since otherwise we
# just get a failed build.
"-DCMAKE_CXX_FLAGS=-mpower8-vector"
];
meta = with lib; {
homepage = "https://simdjson.org/";