Skip to content

Commit

Permalink
bindgen: Keep building with --no-size_t-is-usize
Browse files Browse the repository at this point in the history
as it was done before bindgen-0.64
  • Loading branch information
chrysn committed Mar 23, 2023
1 parent a8a1588 commit 07d7566
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ fn main() {
.clang_args(&cflags)
.use_core()
.ctypes_prefix("libc")
// We've traditionally used size_t explicitly and cast it in riot-wrappers; changing this
// now (going from bindgen 0.60 to 0.64) would break where it's used (although we still
// might instate a type alias for size_t later instead).
.size_t_is_usize(false)
.impl_debug(true)
// Structs listed here are Packed and thus need impl_debug, but also contain non-Copy
// members.
Expand Down

0 comments on commit 07d7566

Please sign in to comment.