Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump bindgen build-dependency to handle clang naming breaking change #1

Merged
merged 1 commit into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libvex-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub mod ppc64;
pub mod s390x;
pub mod x86;

unsafe extern "C" fn failure_exit() {
unsafe extern "C" fn failure_exit() -> ! {
panic!("LibVEX encountered a critical error.")
}

Expand Down
2 changes: 1 addition & 1 deletion libvex-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ libc = "0.2.85"

[build-dependencies]
fs_extra = "1.2"
bindgen = "0.57"
bindgen = "0.69"

[features]
default = []
Expand Down
6 changes: 3 additions & 3 deletions libvex-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,14 @@ fn main() -> Result<()> {
// Generate bindings
let bindings = bindgen::Builder::default()
.header("wrapper.h")
.blacklist_type("_IRStmt__bindgen_ty_1__bindgen_ty_1")
.rustified_enum("*")
.blocklist_type("_IRStmt__bindgen_ty_1__bindgen_ty_1")
.rustified_enum(".*")
.clang_args(vex_headers()?
.into_iter()
.map(|dir| format!("-I{}", dir))
)
.generate()
.map_err(|()| "Unable to generate bindings")?;
.map_err(|_| "Unable to generate bindings")?;
bindings.write_to_file(out_dir.join("bindings.rs"))?;
}

Expand Down
2 changes: 1 addition & 1 deletion libvex-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ mod test {

use crate::*;

unsafe extern "C" fn failure_exit() {
unsafe extern "C" fn failure_exit() -> ! {
panic!("LibVEX encountered a critical error.")
}

Expand Down