add some copy-paste goodness

This commit is contained in:
Tshepang Mbambo 2025-03-15 11:17:03 +02:00
parent 7d157cb36e
commit b04865b8d2
1 changed files with 3 additions and 3 deletions

View File

@ -363,20 +363,20 @@ codegen-backends = ["llvm", "gcc"]
Then you need to install libgccjit 12. For example with `apt`: Then you need to install libgccjit 12. For example with `apt`:
```text ```text
$ apt install libgccjit-12-dev apt install libgccjit-12-dev
``` ```
Now you can run the following command: Now you can run the following command:
```text ```text
$ ./x test compiler/rustc_codegen_gcc/ ./x test compiler/rustc_codegen_gcc/
``` ```
If it cannot find the `.so` library (if you installed it with `apt` for example), you If it cannot find the `.so` library (if you installed it with `apt` for example), you
need to pass the library file path with `LIBRARY_PATH`: need to pass the library file path with `LIBRARY_PATH`:
```text ```text
$ LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/12/ ./x test compiler/rustc_codegen_gcc/ LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/12/ ./x test compiler/rustc_codegen_gcc/
``` ```
If you encounter bugs or problems, don't hesitate to open issues on the If you encounter bugs or problems, don't hesitate to open issues on the