You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code around opt-levels indicates only nightly rustc can use opt-level=s or opt-level=z. Non-nightly rustcs should not even report those values as possible options.
The text was updated successfully, but these errors were encountered:
stabilize opt-level={s,z}
closes#35784closes#47651
### Rationale
Since the lastest LLVM upgrade rustc / LLVM does more agressive loop unrolling. This results in increased binary size of embedded / no_std programs: a hundreds of bytes increase, or about a 7x increase, in the case of the smallest Cortex-M binary cf. #49260.
As we are shooting for embedded Rust on stable it would be great to also provide a way to optimize for size (which is pretty important for embedded applications that target resource constrained devices) on stable.
Also this has been baking in nightly for a long time.
r? @alexcrichton which team has to sign off this?
The code around opt-levels indicates only nightly
rustc
can useopt-level=s
oropt-level=z
. Non-nightlyrustc
s should not even report those values as possible options.The text was updated successfully, but these errors were encountered: