1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

fix compilation error due to 'too many sections' for MinGW debug builds on Windows

This commit is contained in:
Joakim Thorén
2024-11-16 22:41:05 +01:00
parent 3f8f6dc721
commit 89d7776775

View File

@@ -790,6 +790,16 @@ if(WIN32)
)
endif()
# Use -Og for files that generate very large object files
# when compiling with MinGW lest you get "too many sections" assembler errors
if(MINGW AND CMAKE_BUILD_TYPE STREQUAL "Debug")
set_source_files_properties(
serializer/SerializerReflection.cpp
IGameCallback.cpp
PROPERTIES
COMPILE_OPTIONS "-Og")
endif()
vcmi_set_output_dir(vcmi "")
enable_pch(vcmi)