Skip to content

Commit

Permalink
Remove recommendation against LTO (esp-rs#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani authored and bjoernQ committed May 23, 2024
1 parent 292f60f commit 502aa53
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions esp-wifi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,13 @@ At time of writing, you will already have the linkall flag if you used `cargo ge

### Optimization Level

Link time optimization is not yet recommended for use, please ensure `lto = "off"` is in your `Cargo.toml` for both release and debug profiles.

It is necessary to build with optimization level 2 or 3 since otherwise it might not even be able to connect or advertise.

To make it work also for your debug builds add this to your `Cargo.toml`

```toml
[profile.dev.package.esp-wifi]
opt-level = 3

[profile.dev]
lto = "off"
[profile.release]
lto = "off"

```

### Xtensa considerations
Expand Down

0 comments on commit 502aa53

Please sign in to comment.