3838 message ("Generating test runner for normal test..." )
3939 add_executable (filesystem_test filesystem_test.cpp catch.hpp)
4040 target_link_libraries (filesystem_test ghc_filesystem)
41+ if (MINGW)
42+ target_compile_options (filesystem_test PUBLIC "-Wa,-mbig-obj" )
43+ endif ()
4144 if (${CMAKE_SYSTEM_NAME} MATCHES "(SunOS|Solaris)" )
4245 target_link_libraries (filesystem_test xnet)
4346 endif ()
@@ -59,10 +62,13 @@ else()
5962 add_executable (filesystem_test_char filesystem_test.cpp catch.hpp)
6063 target_link_libraries (filesystem_test_char ghc_filesystem)
6164 SetTestCompileOptions(filesystem_test_char)
65+ if (MINGW)
66+ target_compile_options (filesystem_test_char PUBLIC "-Wa,-mbig-obj" )
67+ endif ()
6268 if (CMAKE_CXX_COMPILER_ID MATCHES MSVC )
63- target_compile_definitions (filesystem_test_char PRIVATE _CRT_SECURE_NO_WARNINGS GHC_WIN_DISABLE_WSTRING_STORAGE_TYPE)
69+ target_compile_definitions (filesystem_test_char PRIVATE _CRT_SECURE_NO_WARNINGS GHC_WIN_DISABLE_WSTRING_STORAGE_TYPE)
6470 else ()
65- target_compile_definitions (filesystem_test_char PRIVATE GHC_WIN_DISABLE_WSTRING_STORAGE_TYPE)
71+ target_compile_definitions (filesystem_test_char PRIVATE GHC_WIN_DISABLE_WSTRING_STORAGE_TYPE)
6672 endif ()
6773 ParseAndAddCatchTests(filesystem_test_char)
6874 endif ()
@@ -90,6 +96,9 @@ SetTestCompileOptions(fwd_impl_test)
9096if (CMAKE_CXX_COMPILER_ID MATCHES MSVC )
9197 target_compile_definitions (fwd_impl_test PRIVATE _CRT_SECURE_NO_WARNINGS WIN32_LEAN_AND_MEAN NOMINMAX)
9298endif ()
99+ if (MINGW)
100+ target_compile_options (fwd_impl_test PUBLIC "-Wa,-mbig-obj" )
101+ endif ()
93102add_test (fwd_impl_test fwd_impl_test)
94103
95104add_executable (exception exception.cpp)
0 commit comments