Skip to content

Commit

Permalink
Merge branch 'main' into fix/async_wasi
Browse files Browse the repository at this point in the history
  • Loading branch information
L-jasmine authored Jul 29, 2024
2 parents dc373f7 + ef01eb6 commit da8eb2a
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 da8eb2a

Please sign in to comment.