Skip to content

Commit

Permalink
fix: workaround bindgen bug (rust-lang/rust-bindgen#2157)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanguk Park committed Jun 22, 2024
1 parent d2de384 commit f51a78d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ thiserror = "1.0.38"
[build-dependencies]
bart = { version = "0.1.6", optional = true }
bart_derive = { version = "0.1.6", optional = true }
bindgen = "0.65.1"
bindgen = "0.69.4"
cpp_build = "0.5.7"
fs_extra = { version = "1.3.0", optional = true }

Expand Down
3 changes: 2 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ fn import_tflite_types() {
.clang_arg("c++")
.clang_arg("-std=c++11")
// required to get cross compilation for aarch64 to work because of an issue in flatbuffers
.clang_arg("-fms-extensions");
.clang_arg("-fms-extensions")
.no_copy("_Tp");

let bindings = bindings.generate().expect("Unable to generate bindings");

Expand Down

0 comments on commit f51a78d

Please sign in to comment.