Skip to content

Commit 4508e19

Browse files
committed
Fix build against clang 16
This patch upgrades the `bindgen` dependency to version 0.64 which includes a fix for an upstream issue broken builds when building w/ clang 16 or newer [0]. The use of a wildcard `*` was removed in bindgen 0.62 [1], code has been updated to use the regex approach instead to continue working. [0]: rust-lang/rust-bindgen#2316 [1]: rust-lang/rust-bindgen#2373
1 parent 53c8738 commit 4508e19

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ffmpeg-sys-the-third/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ libc = "0.2"
2626
num_cpus = "1.11"
2727
cc = "1.0"
2828
pkg-config = "0.3"
29-
bindgen = { version = "0.61", default-features = false, features = ["runtime"] }
29+
bindgen = { version = "0.64", default-features = false, features = ["runtime"] }
3030

3131
[target.'cfg(target_env = "msvc")'.build-dependencies]
3232
vcpkg = "0.2"

ffmpeg-sys-the-third/build.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1169,9 +1169,9 @@ fn main() {
11691169
.parse_callbacks(Box::new(Callbacks));
11701170

11711171
if env::var("CARGO_FEATURE_NON_EXHAUSTIVE_ENUMS").is_ok() {
1172-
builder = builder.rustified_non_exhaustive_enum("*");
1172+
builder = builder.rustified_non_exhaustive_enum(".*");
11731173
} else {
1174-
builder = builder.rustified_enum("*");
1174+
builder = builder.rustified_enum(".*");
11751175
}
11761176

11771177
// The input headers we would like to generate

0 commit comments

Comments
 (0)