[wasmedge] Fix zstd not found (#35887)

* Fix find zstd method

* update version

* fix patch

* update version

* veresion
This commit is contained in:
jim wang 2024-01-30 10:31:44 +08:00 committed by GitHub
parent 2d19a1a5b1
commit 4a2c301393
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,19 @@
diff --git a/cmake/Helper.cmake b/cmake/Helper.cmake
index f9cdcf2..a270b05 100644
--- a/cmake/Helper.cmake
+++ b/cmake/Helper.cmake
@@ -221,8 +221,12 @@ if((WASMEDGE_LINK_LLVM_STATIC OR WASMEDGE_BUILD_STATIC_LIB) AND WASMEDGE_BUILD_A
endif()
if (APPLE AND LLVM_VERSION_MAJOR GREATER_EQUAL 15)
# For LLVM 15 or greater on MacOS
- find_package(zstd REQUIRED)
- get_filename_component(ZSTD_PATH "${zstd_LIBRARY}" DIRECTORY)
+ find_package(zstd CONFIG REQUIRED)
+ if(CMAKE_BUILD_TYPE STREQUAL Debug)
+ set(ZSTD_PATH "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib")
+ else()
+ set(ZSTD_PATH "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib")
+ endif()
list(APPEND WASMEDGE_LLVM_LINK_STATIC_COMPONENTS
${ZSTD_PATH}/libzstd.a
)

View File

@ -1,6 +1,7 @@
{
"name": "wasmedge",
"version": "0.13.5",
"port-version": 1,
"description": "WasmEdge is a high-performance WebAssembly runtime for edge computing.",
"homepage": "https://WasmEdge.org",
"license": "Apache-2.0",

View File

@ -9098,7 +9098,7 @@
},
"wasmedge": {
"baseline": "0.13.5",
"port-version": 0
"port-version": 1
},
"wavelib": {
"baseline": "2021-11-26",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "45086bbec78c8152a37b5c487e103a4fd838b17a",
"version": "0.13.5",
"port-version": 1
},
{
"git-tree": "fdf400cacc3fafd5260b1bf7bc097a2e44160d00",
"version": "0.13.5",