Skip to content

Commit e3bbef7

Browse files
authored
Some changes to Readme.md
`rustup override set nightly` is not needed, because there is a `rust-toolchain` file. cc rust-lang#165
1 parent b2f7386 commit e3bbef7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Readme.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $ rustc -Zcodegen-backend=$(pwd)/target/debug/librustc_codegen_cranelift.so my_c
2222
## Build sysroot and test
2323

2424
```bash
25-
$ rustup component add rust-src # Make sure the sysroot source is availablr
25+
$ rustup component add rust-src # Make sure the sysroot source is available
2626
$ ./prepare_libcore.sh # Patch the sysroot source for some not yet supported things
2727
$ ./build.sh
2828
```
@@ -36,3 +36,13 @@ $ ./build.sh
3636
* libstd (needs varargs and some other stuff) ([tracked here](https://github.com/bjorn3/rustc_codegen_cranelift/issues/146))
3737
* u128 and i128 ([no cranelift support](https://github.com/CraneStation/cranelift/issues/354))
3838
* SIMD (huge amount of work to get all intrinsics implemented, so may never be supported)
39+
40+
## Troubleshooting
41+
42+
### Can't compile
43+
44+
Try updating your nightly compiler. You can try to use an nightly a day or two older if updating rustc doesn't fix it. If you still can't compile it, please fill an issue.
45+
46+
### error[E0463]: can't find crate for `std` while compiling a no_std crate
47+
48+
If you use `RUSTFLAGS` to pass `-Zcodegen-backend` to rustc, cargo will compile `build-dependencies` with those flags too. Because this project doesn't support libstd yet, that will result in an error. I don't know of any way to fix this. :(

0 commit comments

Comments
 (0)