Remove the RUSTFLAGS enable method from Readme.md
It is a worse option than using `CARGO_PROFILE_DEV_CODEGEN_BACKEND`. When using `--target` it doesn't apply to build scripts and proc macros. It also overrides any `RUSTFLAGS` you may have set in an env var or cargo config.
This commit is contained in:
parent
580cdfa6a7
commit
b929b68a5b
@ -16,7 +16,6 @@ $ rustup component add rustc-codegen-cranelift-preview --toolchain nightly
|
|||||||
|
|
||||||
Once it is installed, you can enable it with one of the following approaches:
|
Once it is installed, you can enable it with one of the following approaches:
|
||||||
- `CARGO_PROFILE_DEV_CODEGEN_BACKEND=cranelift cargo +nightly build -Zcodegen-backend`
|
- `CARGO_PROFILE_DEV_CODEGEN_BACKEND=cranelift cargo +nightly build -Zcodegen-backend`
|
||||||
- `RUSTFLAGS="-Zcodegen-backend=cranelift" cargo +nightly build`
|
|
||||||
- Add the following to `.cargo/config.toml`:
|
- Add the following to `.cargo/config.toml`:
|
||||||
```toml
|
```toml
|
||||||
[unstable]
|
[unstable]
|
||||||
|
Loading…
Reference in New Issue
Block a user