File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ This is a GCC codegen for rustc, which means it can be loaded by the existing ru
12
12
The primary goal of this project is to be able to compile Rust code on platforms unsupported by LLVM.
13
13
A secondary goal is to check if using the gcc backend will provide any run-time speed improvement for the programs compiled using rustc.
14
14
15
+ ### Dependencies
16
+
17
+ ** rustup:** Follow the instructions on the official [ website] ( https://www.rust-lang.org/tools/install )
18
+
15
19
## Building
16
20
17
21
** This requires a patched libgccjit in order to work.
@@ -91,10 +95,16 @@ $ ./y.sh test --release
91
95
92
96
## Usage
93
97
94
- ` $CG_GCCJIT_DIR ` is the directory you cloned this repo into in the following instructions :
98
+ You have to run these commands, in the corresponding order :
95
99
96
100
``` bash
97
- export CG_GCCJIT_DIR=[the full path to rustc_codegen_gcc]
101
+ $ ./y.sh prepare
102
+ $ ./y.sh build --sysroot
103
+ ```
104
+ To check if all is working correctly, run:
105
+
106
+ ``` bash
107
+ $ ./y.sh cargo build --manifest-path tests/hello-world/Cargo.toml
98
108
```
99
109
100
110
### Cargo
You can’t perform that action at this time.
0 commit comments