Skip to content

Commit

Permalink
Update compile-arduino-esp32.md
Browse files Browse the repository at this point in the history
  • Loading branch information
troyhacks authored Jul 30, 2024
1 parent f5d766d commit 335d807
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/advanced/compile-arduino-esp32.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,8 @@ IF you selected `Compiler Options ---> Optimization Level ---> Optimize for per
list(APPEND compile_options "-Wno-stringop-truncation")
list(APPEND compile_options "-Wno-stringop-overflow")
list(APPEND compile_options "-Wno-maybe-uninitialized")
list(APPEND compile_options "-ffast-math")
```
If you really want to experiment, you can change `-O2` to `-O3` or even `-Ofast` but only `-O2` seems to work for everything in my custom builds.
If you really want to experiment, you can change `-O2` to `-O3` or even `-Ofast` but only `-O2` seems to work for everything in my custom builds. Other compiler flags can be inserted in here as well to various outcomes.

If a build is failing due to a compiler warning, you can edit the above block in `esp-idf/CMakeLists.txt` to add more `-Wno-compiler-warning-that-is-failing` lines to suppress and perhaps get past the particular warning that's causing the build to fail. _**All options DO need to be added one-per-line or it breaks the build system.**_

Expand Down

0 comments on commit 335d807

Please sign in to comment.