diff options
| author | Miguel Ojeda <ojeda@kernel.org> | 2024-08-10 16:35:52 +0200 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2024-08-28 01:57:16 +0200 |
| commit | 824397ddf6536664ec91ac42c6473b7cbf8844f6 (patch) | |
| tree | 800008c41ee24c6c407a560db06b03d3f6a3e26f | |
| parent | d783b1dabdcf7e61612d9ab7dde35f38251d3736 (diff) | |
| download | rust-824397ddf6536664ec91ac42c6473b7cbf8844f6.tar.gz rust-824397ddf6536664ec91ac42c6473b7cbf8844f6.zip | |
CI: rfl: add a Clippy build
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
| -rwxr-xr-x | src/ci/docker/scripts/rfl-build.sh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/ci/docker/scripts/rfl-build.sh b/src/ci/docker/scripts/rfl-build.sh index 51644f2f47e..2f9ec3c23a8 100755 --- a/src/ci/docker/scripts/rfl-build.sh +++ b/src/ci/docker/scripts/rfl-build.sh @@ -4,8 +4,8 @@ set -euo pipefail LINUX_VERSION=4c7864e81d8bbd51036dacf92fb0a400e13aaeee -# Build rustc, rustdoc and cargo -../x.py build --stage 2 library rustdoc +# Build rustc, rustdoc, cargo and clippy-driver +../x.py build --stage 2 library rustdoc clippy ../x.py build --stage 0 cargo # Install rustup so that we can use the built toolchain easily, and also @@ -79,3 +79,14 @@ make -C linux LLVM=1 -j$(($(nproc) + 1)) \ # Generate documentation make -C linux LLVM=1 -j$(($(nproc) + 1)) \ rustdoc + +# Re-build with Clippy enabled +# +# This should not introduce Clippy errors, since `CONFIG_WERROR` is not +# set (thus no `-Dwarnings`) and the kernel uses `-W` for all Clippy +# lints, including `clippy::all`. However, it could catch ICEs. +make -C linux LLVM=1 -j$(($(nproc) + 1)) CLIPPY=1 \ + samples/rust/rust_minimal.o \ + samples/rust/rust_print.o \ + drivers/net/phy/ax88796b_rust.o \ + rust/doctests_kernel_generated.o |
