summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Haarman <inglorion@chromium.org>2023-02-14 22:05:38 +0000
committerBob Haarman <inglorion@chromium.org>2023-02-16 01:59:39 +0000
commit1646eb29c03c54845ad47f9e547616fc43fb2b46 (patch)
treeacd6af6271291f8aeb73234eb6738e7676a8de7e
parent66ae04316cd799f9c8515a70a2890a2544e22836 (diff)
downloadvboot-1646eb29c03c54845ad47f9e547616fc43fb2b46.tar.gz
vboot_reference-sys: Use --blocklist-type when invoking bindgen
Previous versions of bindgen used --blacklist-type, newer versions of bindgen use --blocklist-type. This change updates our build script to use the new spelling. BRANCH=none BUG=b:264938287 TEST=emerge-amd64-generic dev-rust/vboot_reference-sys Change-Id: I15bf4591177af89693d9f02fd3ec2a3c27c92cbb Signed-off-by: Bob Haarman <inglorion@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4250779 Reviewed-by: Allen Webb <allenwebb@google.com>
-rw-r--r--rust/vboot_reference-sys/build.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/vboot_reference-sys/build.rs b/rust/vboot_reference-sys/build.rs
index de8de900..9cc8cee8 100644
--- a/rust/vboot_reference-sys/build.rs
+++ b/rust/vboot_reference-sys/build.rs
@@ -25,13 +25,13 @@ fn bindings_generation() -> io::Result<()> {
println!("cargo:rerun-if-changed={}", header_path.display());
let status = Command::new(bindgen)
.args(["--default-enum-style", "rust"])
- .args(["--blacklist-type", "__rlim64_t"])
+ .args(["--blocklist-type", "__rlim64_t"])
.args(["--raw-line", "pub type __rlim64_t = u64;"])
- .args(["--blacklist-type", "__u\\d{1,2}"])
+ .args(["--blocklist-type", "__u\\d{1,2}"])
.args(["--raw-line", "pub type __u8 = u8;"])
.args(["--raw-line", "pub type __u16 = u16;"])
.args(["--raw-line", "pub type __u32 = u32;"])
- .args(["--blacklist-type", "__uint64_t"])
+ .args(["--blocklist-type", "__uint64_t"])
.arg("--no-layout-tests")
.arg("--disable-header-comment")
.args(["--output", gen_file.to_str().unwrap()])