Modified the code to disable the build of SimdJSONParser library in case of S390X and use the RapidJSONParser library instead.

This commit is contained in:
MeenaRenganathan22 2023-05-04 19:48:46 +00:00
parent 0c11f3f280
commit 9b75f08794
2 changed files with 3 additions and 1 deletions

View File

@ -134,7 +134,9 @@ add_contrib (aws-cmake
)
add_contrib (base64-cmake base64)
if (NOT ARCH_S390X)
add_contrib (simdjson-cmake simdjson)
endif()
add_contrib (rapidjson-cmake rapidjson)
add_contrib (fastops-cmake fastops)
add_contrib (libuv-cmake libuv)

View File

@ -541,7 +541,7 @@ SerializationPtr getObjectSerialization(const String & schema_format)
{
if (schema_format == "json")
{
#if USE_SIMDJSON && __BYTE_ORDER__ != __ORDER_BIG_ENDIAN__
#if USE_SIMDJSON
return std::make_shared<SerializationObject<JSONDataParser<SimdJSONParser>>>();
#elif USE_RAPIDJSON
return std::make_shared<SerializationObject<JSONDataParser<RapidJSONParser>>>();