mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-21 17:17:06 +02:00
Merge pull request #4923 from Kuxe/mingw_compilation_fix
MinGW debug compilation error fix 'too many sections'
This commit is contained in:
commit
43117396bd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user