Skip to content

Commit

Permalink
See rust-xplane: 5879f7a.
Browse files Browse the repository at this point in the history
ABIs changed to C-unwind. This is definitely sound. /s

Signed-off-by: Julia DeMille <me@jdemille.com>
  • Loading branch information
judemille committed Dec 24, 2023
1 parent 9a9002c commit d07b379
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,18 @@ fn main() {
.ignore_functions()
.generate()
.expect("Unable to generate bindings!")
.to_string();
.to_string()
.replace(r#"extern "C""#, r#"extern "C-unwind""#);

let bindings_fns_only = bindings_builder
.with_codegen_config(bindgen::CodegenConfig::FUNCTIONS)
.blocklist_function("__va_start") // This symbol breaks builds on Windows, and is unneeded.
.blocklist_function("__report_gsfailure") // Likewise.
.override_abi(bindgen::Abi::CUnwind, ".*")
.generate()
.expect("Unable to generate bindings!")
.to_string();
.to_string()
.replace(r#"extern "C""#, r#"extern "C-unwind""#);

let bindings = &[
r#"#[cfg(feature = "mockall")]
Expand Down

0 comments on commit d07b379

Please sign in to comment.