From 0c94321e1d60ce81631d022bab8cdbfa6dc6aa0d Mon Sep 17 00:00:00 2001 From: Lawrence Nahum Date: Thu, 16 May 2024 18:53:16 +0200 Subject: [PATCH] adding just --fast-math (w/ default of Os) produces smaller and faster code --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b23847d..28a21dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)