Skip to content

Commit

Permalink
sys: Update bindgen version
Browse files Browse the repository at this point in the history
As LLVM-16 is getting more and more popular, we are hitting the
following bug when trying to regenerate bindings from libvirt
header files:

  rust-lang/rust-bindgen#2312

Long story short, bindgen is not happy with some value that
LLVM-16 returns (LLVM-15 is okay) and panics.

While it's sufficient to bump bindgen to 0.62.0 we can go all the
way to 0.69.2 which is supposed to work even with LLVM-18:

  https://github.com/rust-lang/rust-bindgen/blob/main/CHANGELOG.md#0692-2024-01-13

Signed-off-by: Michal Privoznik <[email protected]>
  • Loading branch information
zippy2 authored and Daniel P. Berrangé committed Jan 23, 2024
1 parent 974339d commit 1b9ba18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virt-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ links = "virt"
libc = "0.2.122"

[build-dependencies]
bindgen = { version = "0.59.2", optional = true }
bindgen = { version = "0.69.2", optional = true }
pkg-config = "0.3.25"

[features]
Expand Down

0 comments on commit 1b9ba18

Please sign in to comment.