File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -320,3 +320,36 @@ communicate with the server to coordinate running tests (see
320
320
[ remote-test-server ] : https://github.com/rust-lang/rust/tree/master/src/tools/remote-test-server
321
321
[ src/bootstrap/test.rs ] : https://github.com/rust-lang/rust/tree/master/src/bootstrap/test.rs
322
322
323
+ ## Running rustc_codegen_gcc tests
324
+
325
+ First thing to know is that it only supports linux x86_64 at the moment. We will
326
+ extend its support later on.
327
+
328
+ You need to update ` codegen-backends ` value in your ` config.toml ` file in the
329
+ ` [rust] ` section and add "gcc" in the array:
330
+
331
+ ``` toml
332
+ codegen-backends = [" llvm" , " gcc" ]
333
+ ```
334
+
335
+ Then you need to install libgccjit 12. For example with ` apt ` :
336
+
337
+ ``` bash
338
+ $ apt install libgccjit-12-dev
339
+ ```
340
+
341
+ Don't forget to check if the ` .so ` is available in your test. With ` apt ` it's not
342
+ and you need to do:
343
+
344
+ ``` bash
345
+ $ ln -s /usr/lib/gcc/x86_64-linux-gnu/12/libgccjit.so /usr/lib/x86_64-linux-gnu/libgccjit.so
346
+ ```
347
+
348
+ Now you can run the following command:
349
+
350
+ ``` bash
351
+ $ ./x.py test compiler/rustc_codegen_gcc/
352
+ ```
353
+
354
+ If you encounter bugs or problems, don't hesitate to open issues on
355
+ [ rustc_codegen_gcc repository] ( github.com/rust-lang/rustc_codegen_gcc/ ) .
You can’t perform that action at this time.
0 commit comments