From 05eb75ef464af2c8fa75557a9f46e9fc21ea8e4a Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 18 Dec 2024 16:56:32 +0800 Subject: [PATCH] [Fix] Workaround for linking libfmt Signed-off-by: vincent --- crates/wasmedge-sys/Cargo.toml | 2 +- crates/wasmedge-sys/build.rs | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/crates/wasmedge-sys/Cargo.toml b/crates/wasmedge-sys/Cargo.toml index f73eadbc..9bda9379 100644 --- a/crates/wasmedge-sys/Cargo.toml +++ b/crates/wasmedge-sys/Cargo.toml @@ -10,7 +10,7 @@ links = "wasmedge" name = "wasmedge-sys" readme = "README.md" repository = "https://github.com/WasmEdge/wasmedge-rust-sdk" -version = "0.19.3" +version = "0.19.4" [dependencies] log = "0.4" diff --git a/crates/wasmedge-sys/build.rs b/crates/wasmedge-sys/build.rs index 88e982ce..04276d75 100644 --- a/crates/wasmedge-sys/build.rs +++ b/crates/wasmedge-sys/build.rs @@ -9,7 +9,7 @@ use build_standalone::*; use crate::build_paths::AsPath; -const WASMEDGE_RELEASE_VERSION: &str = "0.14.1"; +const WASMEDGE_RELEASE_VERSION: &str = "0.14.1-fmt-patch"; const REMOTE_ARCHIVES: phf::Map<&'static str, (&'static str, &'static str)> = phf_map! { // The key is: {os}/{arch}[/{libc}][/static] // * The libc abi is only added on linux. @@ -22,10 +22,10 @@ const REMOTE_ARCHIVES: phf::Map<&'static str, (&'static str, &'static str)> = ph "macos/x86_64" => ("96d01cf083d4f7e1c55683dc4b60acca6d8517ad901e2d7b4b5d64ca9a6532e0", "darwin_x86_64"), "linux/aarch64/gnu" => ("d5ac5c2405ff8a878558379740498e5fe4b126fe746eac585f7efa9bb7f32e28", "manylinux2014_aarch64"), "linux/x86_64/gnu" => ("a82f9fb01a6a6f1dfbd1cb069dc96d116f22c15cdb01207a5d0e65096055d092", "manylinux2014_x86_64"), - "linux/aarch64/gnu/static" => ("073117b8f330ee470cdc574e1c1348dc6775e3b5c2b4662a820d9b4922342662", "debian11_aarch64_static"), - "linux/x86_64/gnu/static" => ("2ad4d84d32fcfadc141fb6b985bad273de5379a33da813ec108efa10b4cb0dc7", "debian11_x86_64_static"), - "linux/aarch64/musl/static" => ("a06a4f10ba960893896331eb3ff7146c13afbfba09ea305f4b56213f2c7d0a93", "alpine3.16_aarch64_static"), - "linux/x86_64/musl/static" => ("b3652a010ac0703177651ce46d5e93cc6acf6bbb8d20ddcb86d26a189775cc00", "alpine3.16_x86_64_static"), + "linux/aarch64/gnu/static" => ("01b4e731951ae2dbe9a9bdcbd6d5747e1e33f8b41dc8da13387f4670dec6f743", "debian11_aarch64_static"), + "linux/x86_64/gnu/static" => ("0ae494f0e251d7fe1b07e421a1989ce2a9f2bf32841ce3086dfc08ef18c9fcf8", "debian11_x86_64_static"), + "linux/aarch64/musl/static" => ("6de03d1c545d329c6aa872732ceb74295afa6acd1e59a7801b3d00553933acdf", "alpine3.16_aarch64_static"), + "linux/x86_64/musl/static" => ("41c78e8c555a33374f90335593fd4684a8f613932d6fe9a77e4e40486517808a", "alpine3.16_x86_64_static"), }; lazy_static! { @@ -66,6 +66,7 @@ fn find_libwasmedge<'a, L: IntoIterator>>( } fn main() { + debug!("fuck"); // rerun if the other build sources change println!("cargo:rerun-if-changed=build_paths.rs"); println!("cargo:rerun-if-changed=build_install.rs");