Skip to content

Commit 2a99110

Browse files
Update documentation to recommend using y.sh rustc instead of rustc and all its flags
1 parent 00ad263 commit 2a99110

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Readme.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,13 @@ error: failed to copy bitcode to object file: No such file or directory (os erro
118118

119119
### Rustc
120120

121-
> You should prefer using the Cargo method.
121+
If you want to run `rustc` directly, you can do so with:
122+
123+
```bash
124+
$ ./y.sh rustc my_crate.rs
125+
```
126+
127+
You can do the same manually (although we don't recommend it):
122128

123129
```bash
124130
$ LIBRARY_PATH="[gcc-path value]" LD_LIBRARY_PATH="[gcc-path value]" rustc +$(cat $CG_GCCJIT_DIR/rust-toolchain | grep 'channel' | cut -d '=' -f 2 | sed 's/"//g' | sed 's/ //g') -Cpanic=abort -Zcodegen-backend=$CG_GCCJIT_DIR/target/release/librustc_codegen_gcc.so --sysroot $CG_GCCJIT_DIR/build_sysroot/sysroot my_crate.rs

0 commit comments

Comments
 (0)