We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
y.sh rustc
rustc
1 parent 00ad263 commit 2a99110Copy full SHA for 2a99110
Readme.md
@@ -118,7 +118,13 @@ error: failed to copy bitcode to object file: No such file or directory (os erro
118
119
### Rustc
120
121
-> You should prefer using the Cargo method.
+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):
128
129
```bash
130
$ 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