Add comment explaining why the ENABLE_GCC_CODEGEN env variable is needed
This commit is contained in:
parent
2dbe7d8d5b
commit
30a07094a6
@ -4,6 +4,8 @@ set -ex
|
||||
|
||||
# Only run the stage 1 tests on merges, not on PR CI jobs.
|
||||
if [[ -z "${PR_CI_JOB}" ]]; then
|
||||
# When running gcc backend tests, we need to install `libgccjit` and to not run llvm codegen
|
||||
# tests as it will fail them.
|
||||
if [[ "${ENABLE_GCC_CODEGEN}" == "1" ]]; then
|
||||
../x.py --stage 1 test --skip src/tools/tidy --skip tests/codegen
|
||||
else
|
||||
@ -23,6 +25,8 @@ if [[ -z "${PR_CI_JOB}" ]]; then
|
||||
../x.py --stage 1 test tests/ui-fulldeps
|
||||
fi
|
||||
|
||||
# When running gcc backend tests, we need to install `libgccjit` and to not run llvm codegen
|
||||
# tests as it will fail them.
|
||||
# NOTE: intentionally uses all of `x.py`, `x`, and `x.ps1` to make sure they all work on Linux.
|
||||
if [[ "${ENABLE_GCC_CODEGEN}" == "1" ]]; then
|
||||
../x.py --stage 2 test --skip src/tools/tidy --skip tests/codegen
|
||||
|
@ -126,11 +126,13 @@ else
|
||||
|
||||
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.verify-llvm-ir"
|
||||
|
||||
# When running gcc backend tests, we need to install `libgccjit` and to not run llvm codegen
|
||||
# tests as it will fail them.
|
||||
if [[ "${ENABLE_GCC_CODEGEN}" == "1" ]]; then
|
||||
# Test the Cranelift backend in CI. Bootstrap knows which targets to run tests on.
|
||||
# Test the Cranelift and GCC backends in CI. Bootstrap knows which targets to run tests on.
|
||||
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=llvm,cranelift,gcc"
|
||||
else
|
||||
# Test the Cranelift and GCC backends in CI. Bootstrap knows which targets to run tests on.
|
||||
# Test the Cranelift backend in CI. Bootstrap knows which targets to run tests on.
|
||||
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=llvm,cranelift"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user