1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00

Merge pull request #4923 from Kuxe/mingw_compilation_fix

MinGW debug compilation error fix 'too many sections'
This commit is contained in:
Ivan Savenko 2024-11-18 12:57:02 +02:00 committed by GitHub
commit 43117396bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -790,6 +790,16 @@ if(WIN32)
)
endif()
# Use '-Wa,-mbig-obj' 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 "-Wa,-mbig-obj")
endif()
vcmi_set_output_dir(vcmi "")
enable_pch(vcmi)