Skip to content

Commit

Permalink
bssl-sys: use extra empty cpp source file
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq-b committed Feb 28, 2024
1 parent 1942cde commit ec436f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/bssl-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,18 @@ fn main() {
println!("cargo:rerun-if-changed=rust_wrapper.h");
cc::Build::new()
.cargo_metadata(true)
.cpp(true) // now the boringssl code requires a C++ stdlib, such as libstd++ or libc++
.include(&include_dir)
.file("rust_wrapper.c")
.compile("rustc_wrapper");

// libssl requires a C++ runtime, such as libstdc++ or libc++
println!("cargo:rerun-if-changed=link_runtime.cpp");
cc::Build::new()
.cargo_metadata(true)
.cpp(true)
.file("link_runtime.cpp")
.compile("link_runtime");

// bindgen
let binding = bindgen::Builder::default()
.header("wrapper.h")
Expand Down
Empty file added lib/bssl-sys/link_runtime.cpp
Empty file.

0 comments on commit ec436f8

Please sign in to comment.