Skip to content

Commit

Permalink
build: attempt to make windows build compatible
Browse files Browse the repository at this point in the history
When running bindgen on windows, it creates a bug on the macos side.
Lets try to remove the problem struct and try again. We probably don't
need it anyways.

We should look into filtering more things in the future to reduce binary
size.

Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Nov 27, 2024
1 parent 839d7ac commit 90b3de5
Show file tree
Hide file tree
Showing 2 changed files with 2,295 additions and 1,793 deletions.
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ fn main() {
{
let bindings = bindgen::Builder::default()
.header("nostrdb/src/nostrdb.h")
.blocklist_type(r#"(\w*Mbstate\w*)"#)
.clang_arg("-Inostrdb/ccan")
.clang_arg("-Inostrdb/src")
.generate()
Expand Down
Loading

0 comments on commit 90b3de5

Please sign in to comment.