Skip to content

Commit

Permalink
Merge pull request #118 from CaptainVincent/link_fmt
Browse files Browse the repository at this point in the history
[Fix] Link fmt library
  • Loading branch information
L-jasmine authored Jul 29, 2024
2 parents ab1661c + edb6e94 commit ef01eb6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/wasmedge-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ fn main() {
// Tell cargo to look for static libraries in the specified directory
println!("cargo:rustc-link-search=native={lib_dir}");

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

0 comments on commit ef01eb6

Please sign in to comment.