add hotpatch for wasmedge (for now)

This commit is contained in:
Richard Holland
2022-07-12 10:45:51 +00:00
parent 0692168f80
commit ed70262aeb
2 changed files with 6 additions and 2 deletions

View File

@@ -133,12 +133,12 @@ target_compile_options (xrpl_core
$<$<BOOL:${is_gcc}>:-Wno-maybe-uninitialized>)
target_link_libraries (xrpl_core
PUBLIC
wasmedge
OpenSSL::Crypto
Ripple::boost
Ripple::syslibs
NIH::secp256k1
NIH::ed25519-donna
NIH::WasmEdge
date::date
Ripple::opts)
#[=================================[

View File

@@ -34,6 +34,10 @@ ExternalProject_Add (wasmedge_src
>
LOG_BUILD ON
LOG_CONFIGURE ON
COMMAND
pwd
COMMAND
sed -iE 's/uint64_t Index;/uint64_t Index = 0;/g' ../lib/aot/compiler.cpp
BUILD_COMMAND
${CMAKE_COMMAND}
--build .
@@ -66,4 +70,4 @@ target_link_libraries (ripple_libs INTERFACE wasmedge)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_DEBUG_POSTFIX ${OLD_DEBUG_POSTFIX})
endif ()
add_library (NIH::wasmedge ALIAS wasmedge)
add_library (NIH::WasmEdge ALIAS wasmedge)