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
1212The primary goal of this project is to be able to compile Rust code on platforms unsupported by LLVM.
1313A secondary goal is to check if using the gcc backend will provide any run-time speed improvement for the programs compiled using rustc.
1414
15+ ### Dependencies
16+
17+ ** rustup:** Follow the instructions on the official [ website] ( https://www.rust-lang.org/tools/install )
18+
1519## Building
1620
1721** This requires a patched libgccjit in order to work.
@@ -91,10 +95,16 @@ $ ./y.sh test --release
9195
9296## Usage
9397
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 :
9599
96100``` 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
98108```
99109
100110### Cargo
You can’t perform that action at this time.
0 commit comments