From cd1cc62f6d4ad06543e2e2cc2feebd466c1dc827 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Tue, 21 Dec 2021 12:56:56 -0600 Subject: [PATCH] Fix issue with MinGW not handling large files --- test/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2f4da3df..b116d030 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -13,6 +13,11 @@ target_include_directories(sfml-test-main PUBLIC "${SRCROOT}/TestUtilities") target_link_libraries(sfml-test-main PUBLIC Catch2::Catch2) target_compile_features(sfml-test-main PRIVATE cxx_std_17) +# Work around MinGW struggling to process a file as large as catch.hpp +if(MINGW) + target_compile_options(sfml-test-main PUBLIC -Wa,-mbig-obj) +endif() + # System is always built SET(SYSTEM_SRC "${SRCROOT}/System/Vector2.cpp"