Go back to -O2 for relwithdebuginfo

This removes about 11% of code size with neglegible performance
impact (tested via testsolv on a tumbleweed upgrade gives
equal performance)
This commit is contained in:
Dirk Müller 2024-04-24 12:58:51 +02:00
parent 66c5b02c4b
commit 39f8506e83
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -399,7 +399,7 @@ IF (MSVC)
ELSE () ELSE ()
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -O3") set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -O3")
set (CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS} -g -O3") set (CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS} -g -O2")
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -g3 -O0") set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -g3 -O0")
ENDIF () ENDIF ()