From 98fa296d7d71565d28735c2ca24cc621f7d1e081 Mon Sep 17 00:00:00 2001 From: Johannes Lorenz Date: Fri, 20 Sep 2024 23:42:45 +0200 Subject: [PATCH] Add compile optimizations --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b3e05c93a..575dd3b23 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -6,7 +6,7 @@ include(CheckLinkerFlag) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) -add_compile_options(-ffast-math) +add_compile_options(-ffast-math -finline-limit=80 -finline-functions -finline-functions-called-once) if(MSVC) add_compile_definitions(_USE_MATH_DEFINES) endif()