Fix win32 toolchain files for release builds.

This commit is contained in:
Alexander Shaduri
2024-11-05 16:52:26 +04:00
parent c1d0f46366
commit 1d9f2a2744
4 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -38,7 +38,9 @@ endif()
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
# Increase optimizations of Release builds
add_compile_options("$<$<CONFIG:RELEASE>:-g0 -O3 -s>")
add_compile_options($<$<CONFIG:RELEASE>:-g0>)
add_compile_options($<$<CONFIG:RELEASE>:-O3>)
add_compile_options($<$<CONFIG:RELEASE>:-s>)
# Enable common CPU optimizations
add_compile_options(-march=i686 -mtune=generic)
+3 -1
View File
@@ -23,7 +23,9 @@ set(CMAKE_FIND_ROOT_PATH "$ENV{MINGW_PREFIX}")
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
# Increase optimizations of Release builds
add_compile_options("$<$<CONFIG:RELEASE>:-g0 -O3 -s>")
add_compile_options($<$<CONFIG:RELEASE>:-g0>)
add_compile_options($<$<CONFIG:RELEASE>:-O3>)
add_compile_options($<$<CONFIG:RELEASE>:-s>)
# Enable common CPU optimizations
add_compile_options(-march=i686 -mtune=generic)
+3 -1
View File
@@ -38,7 +38,9 @@ endif()
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
# Increase optimizations of Release builds
add_compile_options("$<$<CONFIG:RELEASE>:-g0 -O3 -s>")
add_compile_options($<$<CONFIG:RELEASE>:-g0>)
add_compile_options($<$<CONFIG:RELEASE>:-O3>)
add_compile_options($<$<CONFIG:RELEASE>:-s>)
# Enable common CPU optimizations
add_compile_options(-mtune=generic)
+3 -1
View File
@@ -23,7 +23,9 @@ set(CMAKE_FIND_ROOT_PATH "$ENV{MINGW_PREFIX}")
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
# Increase optimizations of Release builds
add_compile_options("$<$<CONFIG:RELEASE>:-g0 -O3 -s>")
add_compile_options($<$<CONFIG:RELEASE>:-g0>)
add_compile_options($<$<CONFIG:RELEASE>:-O3>)
add_compile_options($<$<CONFIG:RELEASE>:-s>)
# Enable common CPU optimizations
add_compile_options(-mtune=generic)