diff options
| author | Miguel Ojeda <ojeda@kernel.org> | 2024-08-10 17:08:44 +0200 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2024-08-28 01:57:16 +0200 |
| commit | 5c558d3ff419fce1d74dd455bb089e26938578af (patch) | |
| tree | 8a3ee6eda50265ece5dfca2a752916ee3148ce86 | |
| parent | d584f7099a3c17c76a38f686a9af0b1d36a686ab (diff) | |
| download | rust-5c558d3ff419fce1d74dd455bb089e26938578af.tar.gz rust-5c558d3ff419fce1d74dd455bb089e26938578af.zip | |
CI: rfl: add macro expanded source build (`-Zunpretty=expanded`)
This particular target does not expand into much code, so it is a good first candidate to see if we could keep this in the CI. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
| -rwxr-xr-x | src/ci/docker/scripts/rfl-build.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ci/docker/scripts/rfl-build.sh b/src/ci/docker/scripts/rfl-build.sh index 030b6f6ee17..e8b6235921d 100755 --- a/src/ci/docker/scripts/rfl-build.sh +++ b/src/ci/docker/scripts/rfl-build.sh @@ -80,6 +80,14 @@ make -C linux LLVM=1 -j$(($(nproc) + 1)) \ make -C linux LLVM=1 -j$(($(nproc) + 1)) \ rustdoc +# Build macro expanded source (`-Zunpretty=expanded`) +# +# This target also formats the macro expanded code, thus it is also +# intended to catch ICEs with formatting `-Zunpretty=expanded` output +# like https://github.com/rust-lang/rustfmt/issues/6105. +make -C linux LLVM=1 -j$(($(nproc) + 1)) \ + samples/rust/rust_minimal.rsi + # Re-build with Clippy enabled # # This should not introduce Clippy errors, since `CONFIG_WERROR` is not |
