Skip to content

Commit eb76045

Browse files
committed
workaround for bindgen bug
1 parent 4b0d2fd commit eb76045

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pgrx-bindgen/src/build.rs

+1-2
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)