Skip to content

Commit

Permalink
Add BOOST_NO_TYPEID=1 to the conan build environment to prevent crash…
Browse files Browse the repository at this point in the history
…es. (faasm#278)

* Add BOOST_NO_TYPEID=1 to the conan build environment to prevent crashes.

Cpprestsdk uses boost::asio itself, which caused conflicting definitions to be linked together, leading to the version with RTTI enabled taking precedence during linktime.

* Re-enable RTTI

* revert errors when merging

* endpoint: fix compilation warning

Co-authored-by: Carlos Segarra <[email protected]>
  • Loading branch information
eigenraven and csegarragonz authored Oct 26, 2022
1 parent dbaf5a2 commit 3d17b93
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cmake/ExternalProjects.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,5 @@ target_link_libraries(faabric_common_dependencies INTERFACE
)
target_compile_definitions(faabric_common_dependencies INTERFACE
FMT_DEPRECATED= # Suppress warnings about use of deprecated api by spdlog
BOOST_NO_TYPEID=1 # Prevent odd crashes within asio implementation
)
add_library(faabric::common_dependencies ALIAS faabric_common_dependencies)
2 changes: 1 addition & 1 deletion include/faabric/endpoint/FaabricEndpoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ enum class EndpointMode
};

namespace detail {
struct EndpointState;
class EndpointState;
}

struct HttpRequestContext
Expand Down

0 comments on commit 3d17b93

Please sign in to comment.