Skip to content

Commit ca097f6

Browse files
committed
Add a check that CI jobs do not set codegen backends directly
1 parent cf55593 commit ca097f6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/ci/run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ if [ "$FORCE_CI_RUSTC" == "" ]; then
5858
DISABLE_CI_RUSTC_IF_INCOMPATIBLE=1
5959
fi
6060

61+
if [[ "$RUST_CONFIGURE_ARGS" == *"rust.codegen-backends"* ]]; then
62+
echo "error: Please specify codegen backends using the CODEGEN_BACKENDS environment variable, not via RUST_CONFIGURE_ARGS."
63+
exit 1
64+
fi
65+
6166
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.print-step-timings --enable-verbose-tests"
6267
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.metrics"
6368
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-verbose-configure"

0 commit comments

Comments
 (0)