Skip to content

Commit 224e053

Browse files
committed
Add debug assertions flag to cg_gcc invocation
1 parent e63d860 commit 224e053

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/tests/codegen-backend-tests/cg_gcc.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# GCC codegen backend
22

33
If you ran into an error related to tests executed with the GCC codegen backend on CI,
4-
you can use the following command to run tests locally using the GCC backend:
4+
you can use the following command to run UI tests locally using the GCC backend:
55

66
```bash
7-
./x test tests/ui --set 'rust.codegen-backends = ["llvm", "gcc"]' --test-codegen-backend gcc
7+
./x test tests/ui \
8+
--set 'rust.codegen-backends = ["llvm", "gcc"]' \
9+
--set 'rust.debug-assertions = false' \
10+
--test-codegen-backend gcc
811
```
912

13+
If a different test suite has failed on CI, you will have to modify the `tests/ui` part.
14+
1015
Below, you can find more information about how to configure the GCC backend in bootstrap.
1116

1217
## Choosing which codegen backends are built

0 commit comments

Comments
 (0)