BuildSystem: Use -O2 for all libraries

I don't know why I had not specified optimization level for libraries.
Only LibImage was using explicit -O3. LibImage doesn't need O3 anymore
as O2 seems to be around the same speed.
This commit is contained in:
Bananymous 2024-09-20 20:04:49 +03:00
parent 23d6205659
commit 1280528e4e
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,8 @@ foreach(library ${USERSPACE_LIBRARIES})
add_dependencies(libraries ${library_lower})
# This is to allow cmake to link when libc updates
target_link_options(${library_lower} PRIVATE -nolibc)
# Default compile options
target_compile_options(${library_lower} PRIVATE -g -O2)
target_compile_definitions(${library_lower} PRIVATE __enable_sse=${BANAN_ENABLE_SSE})
if (NOT BANAN_ENABLE_SSE)

View File

@ -5,7 +5,6 @@ set(LIBIMAGE_SOURCES
)
add_library(libimage ${LIBIMAGE_SOURCES})
target_compile_options(libimage PRIVATE -O3)
banan_link_library(libimage libc)
banan_link_library(libimage ban)