Skip to content

Commit

Permalink
upgrade bindgen build-dependency to 0.62.0
Browse files Browse the repository at this point in the history
fixes build error on too new clang: cloudflare#109
  • Loading branch information
selfisekai committed Mar 30, 2023
1 parent 25e1dd8 commit 5c13f5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion boring-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ include = [
]

[build-dependencies]
bindgen = { version = "0.60", default-features = false, features = ["runtime"] }
bindgen = { version = "0.62", default-features = false, features = ["runtime"] }
cmake = "0.1"

[features]
Expand Down
5 changes: 4 additions & 1 deletion boring-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,10 @@ fn main() {
.derive_debug(true)
.derive_default(true)
.derive_eq(true)
.default_enum_style(bindgen::EnumVariation::NewType { is_bitfield: false })
.default_enum_style(bindgen::EnumVariation::NewType {
is_bitfield: false,
is_global: false,
})
.default_macro_constant_type(bindgen::MacroTypeVariation::Signed)
.generate_comments(true)
.fit_macro_constants(false)
Expand Down

0 comments on commit 5c13f5c

Please sign in to comment.