From 301dcd78cc1547c066a87b3aff91a84dfb3938ee Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 17 Jun 2024 23:03:52 +0300 Subject: [PATCH] LibImage: Compile with -O3 This makes image resizing with cubic interpolation around 10x faster --- LibImage/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/LibImage/CMakeLists.txt b/LibImage/CMakeLists.txt index 00f300c3..2798423a 100644 --- a/LibImage/CMakeLists.txt +++ b/LibImage/CMakeLists.txt @@ -16,6 +16,7 @@ add_custom_target(libimage-headers add_library(libimage ${LIBIMAGE_SOURCES}) add_dependencies(libimage headers libc-install) target_link_libraries(libimage PUBLIC libc) +target_compile_options(libimage PRIVATE -O3) add_custom_target(libimage-install COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/libimage.a ${BANAN_LIB}/