Skip to content

Commit

Permalink
feat: Fix windows build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
uttarayan21 committed Sep 5, 2024
1 parent 2fd2f42 commit 5b2b9cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mnn-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,12 @@ pub fn mnn_c_build(path: impl AsRef<Path>, vendor: impl AsRef<Path>) -> Result<(
config.target("wasm32-unknown-emscripten");
config.cpp_link_stdlib("c++-noexcept");
}
#[cfg(feature = "crt_static")]
config.static_crt(true);
config
})
.cpp(true)
.static_flag(true)
.static_crt(true)
.files(files)
.std("c++14")
// .pipe(|build| {
Expand Down

0 comments on commit 5b2b9cb

Please sign in to comment.