From 01cbbf450a3fdbe816b34567ee865746ac668fe5 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 16 Aug 2024 07:55:29 -0700 Subject: [PATCH] Don't warn about `target_arch = "xtensa". (#128) (#130) * Don't warn about `target_arch = "xtensa". * Update LLVM version. --- .github/workflows/main.yml | 2 +- Cargo.toml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 23f7482b..a0bf6e21 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -75,5 +75,5 @@ jobs: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - sudo add-apt-repository -y 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main' sudo apt install libclang-dev - cd gen && LD_LIBRARY_PATH=/usr/lib/llvm-19/lib cargo run --release + cd gen && LD_LIBRARY_PATH=/usr/lib/llvm-20/lib cargo run --release git diff --exit-code diff --git a/Cargo.toml b/Cargo.toml index f0360a0f..fff5d15c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,6 +24,12 @@ libc = "0.2.100" features = ["default", "bootparam", "ioctl", "netlink", "io_uring", "if_arp", "if_ether", "if_packet", "net", "prctl", "elf", "xdp", "mempolicy", "system", "loop_device"] targets = ["x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu"] +[lints.rust.unexpected_cfgs] +level = "warn" +check-cfg = [ + 'cfg(target_arch, values("xtensa"))', +] + # The rest of this file is auto-generated! [features] bootparam = []