Skip to content

Commit 9b393f0

Browse files
authored
Don't warn about `target_arch = "xtensa". (#128)
* Don't warn about `target_arch = "xtensa". * Update LLVM version.
1 parent 364c767 commit 9b393f0

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ jobs:
7575
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
7676
sudo add-apt-repository -y 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main'
7777
sudo apt install libclang-dev
78-
cd gen && LD_LIBRARY_PATH=/usr/lib/llvm-19/lib cargo run --release
78+
cd gen && LD_LIBRARY_PATH=/usr/lib/llvm-20/lib cargo run --release
7979
git diff --exit-code

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ libc = "0.2.100"
2424
features = ["default", "bootparam", "ioctl", "netlink", "io_uring", "if_arp", "if_ether", "if_packet", "net", "prctl", "elf", "xdp", "mempolicy", "system", "loop_device"]
2525
targets = ["x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu"]
2626

27+
[lints.rust.unexpected_cfgs]
28+
level = "warn"
29+
check-cfg = [
30+
'cfg(target_arch, values("xtensa"))',
31+
]
32+
2733
# The rest of this file is auto-generated!
2834
[features]
2935
bootparam = []

0 commit comments

Comments
 (0)