@@ -119,7 +119,8 @@ if [ "$DEPLOY$DEPLOY_ALT" = "1" ]; then
119
119
RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --set rust.verify-llvm-ir"
120
120
fi
121
121
122
- RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --set rust.codegen-backends=${CODEGEN_BACKENDS:- llvm} "
122
+ CODEGEN_BACKENDS=" ${CODEGEN_BACKENDS:- llvm} "
123
+ RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --set rust.codegen-backends=$CODEGEN_BACKENDS "
123
124
else
124
125
# We almost always want debug assertions enabled, but sometimes this takes too
125
126
# long for too little benefit, so we just turn them off.
@@ -144,11 +145,12 @@ else
144
145
# tests as it will fail them.
145
146
if [[ " ${ENABLE_GCC_CODEGEN} " == " 1" ]]; then
146
147
# Test the Cranelift and GCC backends in CI. Bootstrap knows which targets to run tests on.
147
- RUST_CONFIGURE_ARGS =" $RUST_CONFIGURE_ARGS --set rust.codegen-backends= llvm,cranelift,gcc"
148
+ CODEGEN_BACKENDS =" ${CODEGEN_BACKENDS :- llvm,cranelift,gcc} "
148
149
else
149
150
# Test the Cranelift backend in CI. Bootstrap knows which targets to run tests on.
150
- RUST_CONFIGURE_ARGS =" $RUST_CONFIGURE_ARGS --set rust.codegen-backends= llvm,cranelift"
151
+ CODEGEN_BACKENDS =" ${CODEGEN_BACKENDS :- llvm,cranelift} "
151
152
fi
153
+ RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --set rust.codegen-backends=$CODEGEN_BACKENDS "
152
154
153
155
# We enable this for non-dist builders, since those aren't trying to produce
154
156
# fresh binaries. We currently don't entirely support distributing a fresh
0 commit comments