Use boringssl instead of openssl to implement wasm cache loading (#1804)

This commit is contained in:
liang.he
2022-12-13 14:23:37 +08:00
committed by Wenyong Huang
parent d267121c88
commit b826a84cd6
6 changed files with 52 additions and 14 deletions

View File

@ -27,14 +27,6 @@ if (DEFINED EXTRA_SDK_INCLUDE_PATH)
)
endif ()
# Need exactly OpenSSL 1.1.1
if (WAMR_BUILD_WASM_CACHE EQUAL 1)
# Set OPENSSL_ROOT_DIR to the root directory of an OpenSSL installation.
# Like: cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl
# Especially on MacOS
find_package(OpenSSL 1.1.1 EXACT REQUIRED)
endif ()
# Set default options
# Set WAMR_BUILD_TARGET, currently values supported:
@ -155,6 +147,10 @@ if (WAMR_BUILD_LIB_RATS EQUAL 1)
include (${IWASM_DIR}/libraries/lib-rats/lib_rats.cmake)
endif ()
if (WAMR_BUILD_WASM_CACHE EQUAL 1)
include (${WAMR_ROOT_DIR}/build-scripts/involve_boringssl.cmake)
endif ()
####################### Common sources #######################
if (NOT MSVC)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -ffunction-sections -fdata-sections \