MINGW cross compiler fixes

This commit is contained in:
Attila Mark 2020-06-07 19:22:49 -07:00 committed by Victor Zverovich
parent 936a1833c2
commit 47ae521557

View File

@ -192,6 +192,10 @@ if (HAVE_STRTOD_L)
target_compile_definitions(fmt PUBLIC FMT_LOCALE) target_compile_definitions(fmt PUBLIC FMT_LOCALE)
endif () endif ()
if (MINGW)
target_compile_options(fmt PUBLIC "-Wa,-mbig-obj")
endif ()
if (FMT_WERROR) if (FMT_WERROR)
target_compile_options(fmt PRIVATE ${WERROR_FLAG}) target_compile_options(fmt PRIVATE ${WERROR_FLAG})
endif () endif ()