Skip to content

Commit b929b68

Browse files
authored
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.
1 parent 580cdfa commit b929b68

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ $ rustup component add rustc-codegen-cranelift-preview --toolchain nightly
1616

1717
Once it is installed, you can enable it with one of the following approaches:
1818
- `CARGO_PROFILE_DEV_CODEGEN_BACKEND=cranelift cargo +nightly build -Zcodegen-backend`
19-
- `RUSTFLAGS="-Zcodegen-backend=cranelift" cargo +nightly build`
2019
- Add the following to `.cargo/config.toml`:
2120
```toml
2221
[unstable]

0 commit comments

Comments
 (0)