Skip to content

Commit edb6e94

Browse files
[Fix] Link fmt library
Signed-off-by: vincent <[email protected]>
1 parent ab1661c commit edb6e94

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/wasmedge-sys/build.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,10 @@ fn main() {
9595
// Tell cargo to look for static libraries in the specified directory
9696
println!("cargo:rustc-link-search=native={lib_dir}");
9797

98-
// Tell cargo to tell rustc to link our `wasmedge` library. Cargo will
99-
// automatically know it must look for a `libwasmedge.a` file.
98+
// Tell cargo to tell rustc to link our `wasmedge` and `fmt` library. Cargo will
99+
// automatically know it must look for a `libwasmedge.a` and `libfmt.a` file.
100100
println!("cargo:rustc-link-lib=static=wasmedge");
101+
println!("cargo:rustc-link-lib=static=fmt");
101102
for dep in ["rt", "dl", "pthread", "m", "zstd", "stdc++"] {
102103
link_lib(dep);
103104
}

0 commit comments

Comments
 (0)