filesystem
filesystem copied to clipboard
Fix building on Windows with MSYS2
This PR:
- fixes building on Windows with MSYS2 UCRT64 GCC (adds
-mbig-objtoCXXFLAGSby default for MinGW in general, instead of just Cygwin) - fixes building on Windows with MSYS2 CLANG64 Clang (modifies the
#ifdefss around the GCC#pragmas to also work for Clang, and adds more to fix the things Clang catches that GCC doesn't) - adds MSYS2 to CI
Tests against std::filesystem remain broken, and must be disabled using -DGHC_FILESYSTEM_BUILD_STD_TEST=NO, but at least -DCMAKE_CXX_FLAGS=-Wa,-mbig-obj is no longer required to be passed explicitly.
If any of the above are undesirable, it can be reverted and/or added in a separate PR.
Fixes https://github.com/gulrak/filesystem/issues/189