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
+ Now you can run the following command:
342
+
343
+ ``` bash
344
+ $ ./x.py test compiler/rustc_codegen_gcc/
345
+ ```
346
+
347
+ If it cannot find the ` .so ` library (if you installed it with ` apt ` for example), you
348
+ need to pass the library file path with ` LIBRARY_PATH ` :
349
+
350
+ ``` bash
351
+ $ LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/12/ ./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