Skip to content

Commit e4c6c4e

Browse files
committed
workaround for bindgen bug
1 parent 61a900f commit e4c6c4e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pgrx-bindgen/src/build.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,10 +829,9 @@ fn run_bindgen(
829829
.wrap_static_fns(enable_cshim)
830830
.wrap_static_fns_path(out_path.join("pgrx-cshim-static"))
831831
.wrap_static_fns_suffix("__pgrx_cshim")
832-
.override_abi(bindgen::Abi::CUnwind, ".*")
833832
.generate()
834833
.wrap_err_with(|| format!("Unable to generate bindings for pg{major_version}"))?;
835-
let mut binding_str = bindings.to_string();
834+
let mut binding_str = bindings.to_string().replace("\"C\"", "\"C-unwind\"");
836835
drop(bindings); // So the Rc::into_inner can unwrap
837836

838837
// FIXME: do this for the Node graph instead of reparsing?

0 commit comments

Comments
 (0)