1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-15 13:33:36 +02:00

Merge pull request #4919 from Kuxe/dont_use_Og_for_mingw_debug_builds

Remove '-Og' from MINGW debug builds
This commit is contained in:
Ivan Savenko 2024-11-16 18:51:23 +02:00 committed by GitHub
commit 3f8f6dc721
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)