diff options
author | Bob Haarman <inglorion@chromium.org> | 2023-02-14 22:05:38 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-29 08:19:30 +0000 |
commit | f92585021f31f14d4eae2ae454a95198182a599d (patch) | |
tree | acd6af6271291f8aeb73234eb6738e7676a8de7e | |
parent | 78cdb475081406acc8f0a0de6af90c4b718f6430 (diff) | |
download | vboot-f92585021f31f14d4eae2ae454a95198182a599d.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
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4250779
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4380989
Auto-Submit: Phoebe Wang <phoebewang@chromium.org>
Commit-Queue: Cheng Yueh <cyueh@chromium.org>
Tested-by: Phoebe Wang <phoebewang@chromium.org>
Reviewed-by: Cheng Yueh <cyueh@chromium.org>
-rw-r--r-- | rust/vboot_reference-sys/build.rs | 6 |
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()]) |