Skip to content

Commit

Permalink
Fix issue with MinGW not handling large files
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Dec 21, 2021
1 parent b6c4078 commit 38b3d9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 38b3d9d

Please sign in to comment.