Add support for Amazon Linux 2 and stop generating C++ using Lisp/LCP (#814)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright 2022 Memgraph Ltd.
|
||||
// Copyright 2023 Memgraph Ltd.
|
||||
//
|
||||
// Use of this software is governed by the Business Source License
|
||||
// included in the file licenses/BSL.txt; by using this file, you agree to be bound by the terms of the Business Source
|
||||
@@ -25,7 +25,7 @@ struct EchoMessage {
|
||||
static const memgraph::utils::TypeInfo kType;
|
||||
|
||||
EchoMessage() {} // Needed for serialization.
|
||||
EchoMessage(const std::string &data) : data(data) {}
|
||||
explicit EchoMessage(const std::string &data) : data(data) {}
|
||||
|
||||
static void Load(EchoMessage *obj, memgraph::slk::Reader *reader);
|
||||
static void Save(const EchoMessage &obj, memgraph::slk::Builder *builder);
|
||||
@@ -41,7 +41,7 @@ void Load(EchoMessage *echo, Reader *reader) { Load(&echo->data, reader); }
|
||||
void EchoMessage::Load(EchoMessage *obj, memgraph::slk::Reader *reader) { memgraph::slk::Load(obj, reader); }
|
||||
void EchoMessage::Save(const EchoMessage &obj, memgraph::slk::Builder *builder) { memgraph::slk::Save(obj, builder); }
|
||||
|
||||
const memgraph::utils::TypeInfo EchoMessage::kType{2, "EchoMessage"};
|
||||
const memgraph::utils::TypeInfo EchoMessage::kType{memgraph::utils::TypeId::UNKNOWN, "EchoMessage"};
|
||||
|
||||
using Echo = memgraph::rpc::RequestResponse<EchoMessage, EchoMessage>;
|
||||
|
||||
|
||||
@@ -360,15 +360,6 @@ if(MG_ENTERPRISE)
|
||||
target_link_libraries(${test_prefix}rpc mg-rpc)
|
||||
endif()
|
||||
|
||||
# Test LCP
|
||||
add_custom_command(
|
||||
OUTPUT test_lcp
|
||||
DEPENDS ${lcp_src_files} lcp test_lcp.lisp
|
||||
COMMAND sbcl --script ${CMAKE_CURRENT_SOURCE_DIR}/test_lcp.lisp)
|
||||
add_custom_target(test_lcp ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/test_lcp)
|
||||
add_test(test_lcp ${CMAKE_CURRENT_BINARY_DIR}/test_lcp)
|
||||
add_dependencies(memgraph__unit test_lcp)
|
||||
|
||||
# Test websocket
|
||||
find_package(Boost REQUIRED)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2022 Memgraph Ltd.
|
||||
// Copyright 2023 Memgraph Ltd.
|
||||
//
|
||||
// Use of this software is governed by the Business Source License
|
||||
// included in the file licenses/BSL.txt; by using this file, you agree to be bound by the terms of the Business Source
|
||||
@@ -28,7 +28,7 @@ struct SumReq {
|
||||
int y;
|
||||
};
|
||||
|
||||
const memgraph::utils::TypeInfo SumReq::kType{0, "SumReq"};
|
||||
const memgraph::utils::TypeInfo SumReq::kType{memgraph::utils::TypeId::UNKNOWN, "SumReq"};
|
||||
|
||||
struct SumRes {
|
||||
static const memgraph::utils::TypeInfo kType;
|
||||
@@ -42,7 +42,7 @@ struct SumRes {
|
||||
int sum;
|
||||
};
|
||||
|
||||
const memgraph::utils::TypeInfo SumRes::kType{1, "SumRes"};
|
||||
const memgraph::utils::TypeInfo SumRes::kType{memgraph::utils::TypeId::UNKNOWN, "SumRes"};
|
||||
|
||||
namespace memgraph::slk {
|
||||
void Save(const SumReq &sum, Builder *builder);
|
||||
@@ -66,7 +66,7 @@ struct EchoMessage {
|
||||
std::string data;
|
||||
};
|
||||
|
||||
const memgraph::utils::TypeInfo EchoMessage::kType{2, "EchoMessage"};
|
||||
const memgraph::utils::TypeInfo EchoMessage::kType{memgraph::utils::TypeId::UNKNOWN, "EchoMessage"};
|
||||
|
||||
namespace memgraph::slk {
|
||||
void Save(const EchoMessage &echo, Builder *builder);
|
||||
|
||||
Reference in New Issue
Block a user