Disable LTO in mingw due to CI errors.

This commit is contained in:
Alexander Shaduri
2024-11-05 17:28:25 +04:00
parent 7fd43bba2c
commit da84eb027f
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ endif()
#set(APP_NSIS_PATH /usr/bin/makensis)
# Enable LTO for Release build
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
# Enable LTO for Release build (does not work with mingw)
#set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
# Increase optimizations of Release builds
add_compile_options("$<$<CONFIG:RELEASE>:-g0 -O3 -s>")
+2 -2
View File
@@ -19,8 +19,8 @@ set(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
# The target environment. This is a path which is valid for msys2.
set(CMAKE_FIND_ROOT_PATH "$ENV{MINGW_PREFIX}")
# Enable LTO for Release build
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
# Enable LTO for Release build (does not work with mingw)
#set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
# Increase optimizations of Release builds
add_compile_options("$<$<CONFIG:RELEASE>:-g0 -O3 -s>")
+2 -2
View File
@@ -34,8 +34,8 @@ endif()
#set(APP_NSIS_PATH /usr/bin/makensis)
# Enable LTO for Release build
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
# Enable LTO for Release build (does not work with mingw)
#set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
# Increase optimizations of Release builds
add_compile_options("$<$<CONFIG:RELEASE>:-g0 -O3 -s>")
+2 -2
View File
@@ -19,8 +19,8 @@ set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
# The target environment. This is a path which is valid for msys2.
set(CMAKE_FIND_ROOT_PATH "$ENV{MINGW_PREFIX}")
# Enable LTO for Release build
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
# Enable LTO for Release build (does not work with mingw)
#set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
# Increase optimizations of Release builds
add_compile_options("$<$<CONFIG:RELEASE>:-g0 -O3 -s>")