1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-19 17:12:06 +02:00

Remove '-Og' from MINGW debug builds. It interferes with debugging. See https://stackoverflow.com/a/63386263/2323908. Instead, the default O0 is used.

This change makes it possible to use whatever optimization levels you want debug builds, which was previously impossible due to the passing of -Og in CMakeLists.txt.
This commit is contained in:
Joakim Thorén 2024-11-16 17:15:55 +01:00
parent 1a038b26ed
commit c3f675c3ea

View File

@ -355,13 +355,6 @@ if(MINGW OR MSVC)
if(ICONV_FOUND)
set(SYSTEM_LIBS ${SYSTEM_LIBS} iconv)
endif()
# Prevent compiler issues when building Debug
# Assembler might fail with "too many sections"
# With big-obj or 64-bit build will take hours
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Og")
endif()
endif(MINGW)
endif(MINGW OR MSVC)