Skip to content

Commit

Permalink
adding just --fast-math (w/ default of Os) produces smaller and faste…
Browse files Browse the repository at this point in the history
…r code
  • Loading branch information
greenaddress committed May 16, 2024
1 parent be8f132 commit 0c94321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ idf_component_register(SRC_DIRS "src"
INCLUDE_DIRS "src")

target_compile_features(${COMPONENT_LIB} PRIVATE cxx_std_20)
target_compile_options(${COMPONENT_LIB} PRIVATE -Ofast)
target_compile_options(${COMPONENT_LIB} PRIVATE -ffast-math)

0 comments on commit 0c94321

Please sign in to comment.