LibImage: Compile with -O3

This makes image resizing with cubic interpolation around 10x faster
This commit is contained in:
Bananymous 2024-06-17 23:03:52 +03:00
parent 65c6d62a15
commit 301dcd78cc
1 changed files with 1 additions and 0 deletions

View File

@ -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}/