From 660b92dbbc52cf2e051de581ebb5a93ccd33041f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Tue, 28 Nov 2023 13:23:27 +0100 Subject: [PATCH] Remove recommendation against LTO (#363) --- esp-wifi/README.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/esp-wifi/README.md b/esp-wifi/README.md index 7bfeb8113c4..aeb37ddca7a 100644 --- a/esp-wifi/README.md +++ b/esp-wifi/README.md @@ -45,8 +45,6 @@ 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` @@ -54,12 +52,6 @@ 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