unit tests: Teach detect_prebuild_env about Cygwin
This is enough to fix things.
Note that build_shared_lib doesn't use the implib name for mingw or cygwin
gcc, only msvc, so I'm not quite sure how this is working, I guess we are
using the gcc facility to link directly with a dll...
@@ -1348,6 +1348,9 @@ int main(int argc, char **argv) {
if mesonbuild.mesonlib.is_windows():
object_suffix = 'obj'
shared_suffix = 'dll'
+ elif mesonbuild.mesonlib.is_cygwin():
+ object_suffix = 'o'
+ shared_suffix = 'dll'
elif mesonbuild.mesonlib.is_osx():
object_suffix = 'o'
shared_suffix = 'dylib'
